/* ===================================================================
   Global & Reusable Styles
   =================================================================== */
body {
    font-family: sans-serif;
}

.proshna-btn {
    padding: 12px 25px; /* Reduced padding */
    font-size: 0.95em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block; /* Ensure it behaves like a button */
}

.proshna-quiz-submit-button {
    background-color: #5cb85c;
    color: white;
    border: none;
    padding: 12px 25px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.proshna-quiz-submit-button:hover {
    background-color: #4cae4c;
}

/* ===================================================================
   Layout: Two Column Wrapper (Common for most pages)
   =================================================================== */
.proshna-quiz-page .proshna-single-question-modern-wrapper,
.proshna-quiz-page .proshna-page-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Gap between content and sidebar */
}

.proshna-quiz-page .proshna-question-card-main,
.proshna-quiz-page .proshna-main-content {
    flex: 1;
    min-width: 65%; /* Adjust as needed */
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px 10px; /* Default padding */
}

/* Base styles for sidebar (shared by question/quiz pages) */
.proshna-quiz-page .proshna-sidebar,
.proshna-quiz-page .proshna-question-sidebar {
    flex-basis: 300px; /* Fixed width */
    flex-shrink: 0; /* Prevent shrinking */
    width: 300px;
    position: -webkit-sticky; /* Sticky Sidebar */
    position: sticky;
    top: 30px;
    align-self: flex-start;
}

/* ===================================================================
   Layout: Two Column Wrapper (Common for most pages)
   =================================================================== */
.proshna-quiz-page .proshna-single-question-modern-wrapper,
.proshna-quiz-page .proshna-page-wrapper {
    /* ... existing rules ... */
}

.proshna-quiz-page .proshna-question-card-main,
.proshna-quiz-page .proshna-main-content {
    /* ... existing rules ... */
}

/* Base styles for sidebar (shared by question/quiz pages) */
.proshna-quiz-page .proshna-sidebar,
.proshna-quiz-page .proshna-question-sidebar {
    /* ... existing rules ... */
}

/* --- ADD THIS NEW RULE --- */
.proshna-quiz-page .proshna-single-question-modern-wrapper > .proshna-quiz-start-screen {
    /* This targets the start screen ONLY when it's inside the flex wrapper */
    flex: 1;
    min-width: 65%;
    width: auto; /* Override the 100% width from the main rule */
}
/* --- END OF NEW RULE --- */

/* ===================================================================
   Modern Page Header (Blue Gradient)
   =================================================================== */
.proshna-quiz-page .entry-header,
.proshna-quiz-page .page-header,
.proshna-quiz-page .tdb-title { /* Theme compatibility */
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    padding: 30px 35px; /* Reduced padding */
    margin-top: 20px;
    margin-bottom: 25px;
    border-radius: 12px;
}

.proshna-quiz-page .entry-header .entry-title,
.proshna-quiz-page .page-header .page-title,
.proshna-quiz-page .tdb-title-text {
    color: #ffffff !important;
    font-size: 2.2em !important; /* Reduced font size */
    margin-bottom: 10px !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Breadcrumbs & Meta inside header */
.proshna-quiz-page .entry-header .breadcrumbs,
.proshna-quiz-page .page-header .breadcrumbs,
.proshna-quiz-page .entry-crumbs,
.proshna-quiz-page .entry-header .entry-meta,
.proshna-quiz-page .page-header .page-meta,
.proshna-quiz-page .tdb-author-date {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 8px;
    color: #ffffff !important;
}
.proshna-quiz-page .entry-header .breadcrumbs a,
.proshna-quiz-page .page-header .breadcrumbs a,
.proshna-quiz-page .entry-crumbs a,
.proshna-quiz-page .entry-header .entry-meta a,
.proshna-quiz-page .page-header .page-meta a,
.proshna-quiz-page .tdb-author-date a {
    color: #ffffff !important;
    text-decoration: none;
}
.proshna-quiz-page .entry-header .breadcrumbs a:hover,
.proshna-quiz-page .page-header .breadcrumbs a:hover,
.proshna-quiz-page .entry-crumbs a:hover {
    text-decoration: underline;
}

/* ===================================================================
   Homepage Styles
   =================================================================== */
.proshna-homepage-wrapper .proshna-hero-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    text-align: center;
    padding: 60px 20px; /* Reduced padding */
    border-radius: 0;
    margin-bottom: 40px;
}

.proshna-homepage-wrapper .proshna-hero-content h1 {
    font-size: 2.5em; /* Reduced size */
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.proshna-homepage-wrapper .proshna-hero-content p {
    font-size: 1.15em; /* Reduced size */
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.proshna-homepage-wrapper .proshna-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px; /* Space before search box */
}

.proshna-homepage-wrapper .proshna-btn-primary {
    background-color: #fff;
    color: #1e3c72;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.proshna-homepage-wrapper .proshna-btn-primary:hover {
    background-color: #f0f0f0; /* Slight change on hover */
    transform: translateY(-2px);
}

.proshna-homepage-wrapper .proshna-btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.proshna-homepage-wrapper .proshna-btn-secondary:hover {
    background-color: #fff;
    color: #1e3c72;
    transform: translateY(-2px);
}

/* Homepage Content Sections */
.proshna-homepage-wrapper .proshna-content-section {
    margin-bottom: 40px;
    padding: 10px;
}

.proshna-homepage-wrapper .proshna-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.proshna-homepage-wrapper .proshna-section-title {
    font-size: 1.6em; /* Reduced size */
    margin: 0;
}

.proshna-homepage-wrapper .proshna-section-view-all {
    text-decoration: none;
    color: #0073aa;
    font-weight: 500;
    font-size: 0.9em;
}

/* Homepage Category Grid */
.proshna-homepage-wrapper .proshna-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.proshna-homepage-wrapper .proshna-category-item {
    background-color: #f0f2f5;
    color: #3c434a;
    padding: 8px 18px; /* Reduced padding */
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    font-size: 0.9em;
}

.proshna-homepage-wrapper .proshna-category-item:hover {
    background-color: #0073aa;
    color: #fff;
}

/* ===================================================================
   Gallery Styles (Quiz, Lesson, Question)
   =================================================================== */

/* --- Gallery Wrapper --- */
.proshna-gallery-wrap {
    margin: 1.5em 0; /* Reduced margin */
}

.proshna-gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--proshna-gallery-cols, 3), 1fr);
    gap: 20px; /* Reduced gap */
}

/* --- Gallery Item (Card) --- */
.proshna-gallery-item,
.proshna-gallery-card-item { /* Unified gallery card style */
    position: relative;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important; /* Consistent rounded corners */
    overflow: hidden;
    background-color: #fff !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    padding: 0 !important; /* Remove padding for items with images */
    height: auto !important;
}
.proshna-gallery-card-item {
     padding: 20px !important; /* Add padding back for question gallery items */
}


.proshna-gallery-item:hover,
.proshna-gallery-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    border-color: #0073aa !important;
}

.proshna-gallery-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.proshna-gallery-item-image {
    width: 100%;
    height: 180px; /* Slightly reduced height */
    object-fit: cover;
    display: block;
    background-color: #f0f2f5; /* Lighter placeholder background */
}

.proshna-gallery-item-content {
    padding: 15px 20px; /* Reduced padding */
}

.proshna-gallery-item-title,
.proshna-gallery-card-item .proshna-question-gallery-title a {
    font-size: 1.1rem; /* Slightly reduced size */
    margin: 0 0 10px 0;
    color: #111827;
    line-height: 1.4;
    text-decoration: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}
.proshna-gallery-card-item .proshna-question-gallery-title a:hover {
     color: #0073aa;
}


.proshna-gallery-item-button {
    display: inline-block;
    padding: 8px 18px; /* Reduced padding */
    background-color: #0073aa;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}

.proshna-gallery-item-link:hover .proshna-gallery-item-button {
    background-color: #005a87;
}

.proshna-gallery-item-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* --- Favorite Button (on Gallery Cards) --- */
.proshna-quiz-page .proshna-favorite-btn {
    position: absolute;
    top: 8px; /* Adjusted position */
    right: 8px;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px; /* Smaller */
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}
.proshna-quiz-page .proshna-favorite-btn:hover { background-color: rgba(0, 0, 0, 0.6); }
.proshna-quiz-page .proshna-favorite-btn.active { background-color: #e74c3c; }
.proshna-quiz-page .proshna-favorite-btn .dashicons { font-size: 18px; width: auto; height: auto; line-height: 1; }


/* --- Question Gallery Specific --- */
/* Filters */
.proshna-gallery-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px; /* Reduced gap */
    margin-bottom: 25px; /* Reduced margin */
    border: 1px solid #e5e7eb;
    padding: 15px; /* Reduced padding */
    border-radius: 12px;
    background-color: #f9fafb;
}
@media (min-width: 768px) { .proshna-gallery-filters { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.proshna-gallery-filters input[type="search"],
.proshna-gallery-filters select {
    width: 100%;
    padding: 10px 12px; /* Reduced padding */
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95em; /* Slightly smaller font */
    background-color: #fff;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center; /* Adjusted icon position */
    background-size: 14px; /* Slightly smaller icon */
}
.proshna-gallery-filters input[type="search"] { background-image: none; }
.proshna-gallery-filters input:focus,
.proshna-gallery-filters select:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    outline: none;
}

/* View Switcher */
.proshna-view-switcher { display: flex; justify-content: flex-end; margin-bottom: 15px; }
.proshna-view-switcher button { background-color: #f6f7f7; border: 1px solid #dcdcde; padding: 6px 10px; cursor: pointer; color: #555; transition: all 0.2s ease; }
.proshna-view-switcher button:first-child { border-radius: 5px 0 0 5px; border-right-width: 0.5px; }
.proshna-view-switcher button:last-child { border-radius: 0 5px 5px 0; border-left-width: 0.5px; }
.proshna-view-switcher button.active { background-color: #0073aa; color: #fff; border-color: #0073aa; z-index: 2; }

/* List View */
#proshna-question-gallery-results.list-view { display: flex; flex-direction: column; gap: 10px; }
.list-view .proshna-question-card { background-color: #fff; border: 1px solid #e5e7eb; border-radius: 8px; transition: all 0.2s ease; padding: 0 !important; } /* Reset padding */
.list-view .proshna-question-gallery-link { display: flex; align-items: center; padding: 15px 20px; text-decoration: none; gap: 15px; }
.list-view .proshna-question-card:hover { border-color: #0073aa; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.07); }
.list-view .proshna-question-gallery-link::before { content: "\f223"; font-family: dashicons; font-size: 20px; color: #0073aa; background-color: #eef6ff; border-radius: 50%; padding: 8px; line-height: 1; }
.list-view .proshna-question-content { flex-grow: 1; }
.list-view .proshna-question-gallery-title { font-size: 1.05em; color: #111827; margin: 0 0 8px; }
.list-view .proshna-question-gallery-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.list-view .proshna-meta-tag { font-size: 0.8em; }

/* Meta Tags (used in gallery and question pages) */
.proshna-meta-tag {
    display: inline-block;
    font-size: 0.8em;
    font-weight: 500;
    background-color: #eef6ff;
    color: #005a87 !important; /* Ensure link color override */
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none !important;
    margin-right: 8px;
    border: 1px solid transparent;
    transition: background-color 0.2s;
}
.proshna-meta-tag:hover { background-color: #dbeeff; color: #005a87 !important; }
.proshna-gallery-card-item .proshna-question-gallery-meta,
.proshna-quiz-page .proshna-question-meta { margin-top: 10px; margin-bottom: 15px; }


/* ===================================================================
   Single Question / Lesson / Archive / Quiz Styles
   =================================================================== */

/* --- Common Structure --- */
.proshna-lesson-wrapper-modern,
.proshna-quiz-page .proshna-quiz-single-wrapper /* For quiz layout */ {
    background-color: transparent; /* Rely on card-main background */
    border: none;
    padding: 0;
    border-radius: 12px;
}

.proshna-lesson-header,
.proshna-quiz-page .proshna-quiz-header {
    padding: 0 0 15px; /* Only bottom padding */
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 25px;
}

.proshna-lesson-header h2,
.proshna-quiz-page .proshna-quiz-header h2 {
    font-size: 1.8em; /* Reduced size */
    color: #111827;
    margin-bottom: 8px;
    margin-top: 0;
}

.proshna-lesson-header .proshna-short-description,
.proshna-quiz-page .proshna-quiz-header .proshna-short-description {
    font-size: 1em; /* Reduced size */
    color: #6b7280;
    margin-top: 0;
    line-height: 1.6;
}

/* Question List / Blocks */
.proshna-question-list { margin-top: 0; display: grid; gap: 25px; } /* Reduced gap */
.proshna-question-card { background: none; border: none; padding: 0; box-shadow: none; border-bottom: 1px solid #f0f2f5; padding-bottom: 25px; border-radius: 0; }
.proshna-question-card:last-child { border-bottom: none; padding-bottom: 0; }
.proshna-question-card:hover { box-shadow: none; }

.proshna-question-card-header { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 15px; }
.proshna-question-number { font-size: 1.1em; font-weight: 600; color: #0073aa; line-height: 1.5; }
.proshna-question-text,
.proshna-quiz-page .proshna-question-title { font-size: 1.15em !important; font-weight: 600; color: #1f2937; margin: 0 !important; padding: 0 !important; line-height: 1.5; flex-grow: 1; }

.proshna-question-options-grid { margin: 15px 0 15px 0; display: grid; gap: 6px; } /* Reduced margin/gap */

/* --- Option Styling (Shared - Modern Look from Screenshot 21) --- */
.proshna-option-item, /* Lesson/Archive View */
.proshna-option-item-single /* Single Question View */ {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px !important; /* Adjusted padding */
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    background-color: #f9fafb !important;
    color: #374151 !important;
    transition: background-color 0.2s, border-color 0.2s;
}

/* Option Letter ( ক, খ, গ...) */
.proshna-option-item .proshna-option-letter,
.proshna-option-item-single .proshna-option-letter {
    font-size: 0.95em;
    font-weight: bold;
    color: #111827;
    background-color: #e5e7eb;
    border-radius: 50%;
    width: 26px; /* Slightly smaller */
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    order: 0; /* Letter first */
    flex-shrink: 0;
    margin-right: 5px; /* Space after letter */
}

/* Option Icons (✔ / X) */
.proshna-option-item .proshna-option-icon,
.proshna-option-item-single .proshna-option-icon {
    font-size: 18px; /* Slightly smaller */
    order: 2; /* Icon last */
    margin-left: auto; /* Push icon to the right */
    display: flex;
    align-items: center;
}

/* Correct Option Styles */
.proshna-option-item.is-correct,
.proshna-option-item-single.is-correct {
    background-color: #e8f5e9 !important; /* Lighter Green */
    border-color: #a5d6a7 !important; /* Softer Green Border */
    color: #1b5e20 !important; /* Darker Green Text */
    font-weight: 500 !important;
}
.proshna-option-item.is-correct .proshna-option-letter,
.proshna-option-item-single.is-correct .proshna-option-letter {
    background-color: #a5d6a7;
    color: #1b5e20;
}
.proshna-option-item.is-correct .proshna-option-icon .dashicons-yes-alt:before,
.proshna-option-item-single.is-correct .proshna-option-icon .dashicons-yes-alt:before {
    content: "\f147" !important; font-family: dashicons !important; color: #388e3c !important; /* Green Check */
}

/* Incorrect Option Styles */
.proshna-option-item:not(.is-correct) .proshna-option-icon .dashicons-no:before { /* Lesson/Archive */
    content: "\f158" !important; font-family: dashicons !important; color: #e57373 !important; /* Softer Red X */
}
.proshna-option-item-single.is-incorrect { /* Single Question */
        background-color: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    color: #374151 !important;
}
.proshna-option-item-single.is-incorrect .proshna-option-letter {
    background-color: #f3f4f6;
    color: #374151;
}
.proshna-option-item-single.is-incorrect .proshna-option-icon .dashicons-no-alt:before {
    content: "\f335" !important; font-family: dashicons !important; color: #e57373 !important; /* Softer Red X */
}

/* Hide irrelevant icons */
.proshna-option-item:not(.is-correct) .proshna-option-icon .dashicons-yes-alt,
.proshna-option-item.is-correct .proshna-option-icon .dashicons-no,
.proshna-option-item-single:not(.is-correct) .proshna-option-icon .dashicons-yes-alt,
.proshna-option-item-single.is-correct .proshna-option-icon .dashicons-no-alt {
    display: none;
}


/* --- Explanation Box --- */
.proshna-question-explanation,
.proshna-explanation-section .proshna-explanation-content {
    background-color: #e8f5e9 !important; /* Light Green */
    border-left: none !important;
    border-radius: 12px !important;
    padding: 10px 10px !important; /* Reduced padding */
    color: #333;
    line-height: 1.6; /* Improved readability */
    margin: 15px 0 6px 0 !important; /* Consistent margin */
    font-size: 0.95em;
}
.proshna-explanation-section { margin-bottom: 20px; } /* Space after explanation section */
.proshna-explanation-section .proshna-section-heading { margin-bottom: 10px; font-size: 1.2em; }

.proshna-question-explanation strong,
.proshna-explanation-section .proshna-explanation-content strong {
    color: #1b5e20; /* Dark Green Heading */
    display: block;
    margin-bottom: 8px;
    font-size: 1.05em; /* Slightly smaller heading */
}

/* --- Action Buttons (Unified) --- */
.proshna-quiz-page .proshna-question-actions,
.proshna-quiz-page .proshna-question-footer-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f2f5; /* Lighter border */
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px; /* Reduced gap */
}

.proshna-quiz-page .proshna-question-actions > a,
.proshna-quiz-page .proshna-question-actions > button,
.proshna-quiz-page .proshna-question-actions > .proshna-view-count,
.proshna-quiz-page .proshna-question-footer-actions > a,
.proshna-quiz-page .proshna-question-footer-actions > button,
.proshna-quiz-page .proshna-question-footer-actions > .proshna-view-count {
    background-color: #f6f7f7 !important;
    border: 1px solid #dcdcde !important;
    color: #3c434a !important; /* Darker gray */
    border-radius: 8px !important; /* More rounded */
    padding: 6px 12px !important; /* Reduced padding */
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: all 0.2s ease;
    cursor: default; /* Default non-clickable */
}
/* Make only buttons/links clickable */
.proshna-quiz-page .proshna-question-actions > a,
.proshna-quiz-page .proshna-question-actions > button,
.proshna-quiz-page .proshna-question-footer-actions > a,
.proshna-quiz-page .proshna-question-footer-actions > button { cursor: pointer; }

/* Hover effect */
.proshna-quiz-page .proshna-question-actions > a:hover,
.proshna-quiz-page .proshna-question-actions > button:hover,
.proshna-quiz-page .proshna-question-footer-actions > a:hover,
.proshna-quiz-page .proshna-question-footer-actions > button:hover {
    background-color: #e9f6ff !important;
    border-color: #0073aa !important;
    color: #0073aa !important;
}
/* Active (Like) Button */
.proshna-quiz-page .proshna-question-actions > .proshna-like-btn.active,
.proshna-quiz-page .proshna-question-footer-actions > .proshna-like-btn.active {
    background-color: #fff0f0 !important; border-color: #e74c3c !important; color: #e74c3c !important; font-weight: bold;
}

/* ===================================================================
   Improved Single Quiz Page Styles (Single Question Layout)
   =================================================================== */

/* --- Main Wrapper --- */
.proshna-quiz-page .proshna-quiz-single-wrapper {
    overflow: hidden; /* Prevent image overflow */
    background-color: #fff; /* Ensure white background if not set by main content */
    border-radius: 12px; /* Ensure consistency */
    padding: 30px; /* Add padding directly to the wrapper */
}

/* --- Featured Image --- */
.proshna-quiz-page .proshna-quiz-featured-image {
    width: calc(100% + 60px); /* Extend image to edges */
    margin: -30px -30px 25px -30px; /* Adjust margins */
    max-height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0; /* Round top corners only */
}

/* --- Quiz Header --- */
.proshna-quiz-page .proshna-quiz-header {
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb; /* Use a standard border color */
    margin-bottom: 25px;
}
.proshna-quiz-page .proshna-quiz-header h2 { /* Quiz Title */
    font-size: 1.8em;
    color: #111827;
    margin-bottom: 10px; /* Space below title */
    margin-top: 0;
    font-weight: 600; /* Make title bolder */
}

/* --- Meta Info (Timer & Counter) --- */
.proshna-quiz-page .proshna-quiz-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px; /* Space above meta */
    color: #4b5563; /* Slightly darker grey */
    font-size: 0.95em; /* Slightly larger */
    font-weight: 500;
    background-color: #f9fafb; /* Subtle background */
    padding: 10px 15px; /* Padding */
    border-radius: 8px; /* Rounded corners */
    border: 1px solid #e5e7eb; /* Border */
}
.proshna-quiz-page .proshna-quiz-timer span,
.proshna-quiz-page .proshna-question-counter span {
    font-weight: 600; /* Bolder numbers */
    color: #1f2937; /* Darker number color */
    background-color: #fff; /* White background for numbers */
    padding: 3px 8px; /* Padding around numbers */
    border-radius: 4px; /* Rounded number background */
    margin-left: 5px; /* Space before number */
}
#proshna-quiz-timer-display {
    color: #059669; /* Green timer text */
}

/* --- Question Block --- */
.proshna-quiz-page .proshna-question-block {
    padding: 30px 0; /* More vertical padding */
    border-bottom: none; /* Remove bottom border, use wrapper padding */
    margin-bottom: 20px; /* Space below question block before nav */
}
.proshna-quiz-page .proshna-question-block:last-of-type {
    margin-bottom: 0; /* No margin on last question block */
}

/* --- Question Title --- */
.proshna-quiz-page .proshna-question-title {
    font-size: 1.3em !important; /* Larger question text */
    font-weight: 600;
    color: #111827; /* Darker color */
    margin-bottom: 25px !important; /* More space below question */
    padding: 0 !important;
    line-height: 1.5;
}

/* --- Options List --- */
.proshna-quiz-page .proshna-options-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px; /* Increased gap between options */
}
.proshna-quiz-page .proshna-options-list li {
    margin: 0;
    padding: 0;
}

/* --- Option Label Styling --- */
.proshna-quiz-page .proshna-options-list label {
    display: flex;
    align-items: center;
    gap: 0; /* Increased gap */
    padding: 15px 20px !important; /* More padding */
    border: 2px solid #e5e7eb;
    border-radius: 10px !important; /* Slightly less rounded */
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
    background-color: #fff; /* White background for options */
}
.proshna-quiz-page .proshna-options-list label:hover {
    background-color: #f9fafb; /* Lighter hover */
    border-color: #9ca3af; /* Grey border on hover */
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* Add shadow on hover */
}

/* --- Selected Option Styling --- */
.proshna-quiz-page .proshna-options-list input[type="checkbox"]:checked + label,
.proshna-quiz-page .proshna-options-list input[type="radio"]:checked + label {
    background-color: #e0f2fe; /* Lighter blue background */
    border-color: #0ea5e9; /* Sky blue border */
    color: #0369a1; /* Darker blue text */
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.1); /* Subtle blue shadow */
}
.proshna-quiz-page .proshna-options-list input[type="checkbox"]:checked + label .proshna-option-letter,
.proshna-quiz-page .proshna-options-list input[type="radio"]:checked + label .proshna-option-letter {
    background-color: #0ea5e9; /* Sky blue letter background */
    color: #fff;
    transform: scale(1.1); /* Slightly enlarge letter */
}

/* --- Option Letter Styling --- */
.proshna-option-item .proshna-option-letter, /* Include from previous styles */
.proshna-option-item-single .proshna-option-letter, /* Include from previous styles */
.proshna-quiz-page .proshna-options-list .proshna-option-letter {
    font-size: 0.95em;
    font-weight: bold;
    color: #374151; /* Dark grey */
    background-color: #f3f4f6; /* Lighter grey background */
    border-radius: 6px; /* Squarish */
    width: 28px; /* Slightly larger */
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    order: 0;
    flex-shrink: 0;
    margin-right: 5px; /* Space after letter */
    transition: all 0.2s ease; /* Add transition */
}

/* --- Input Hiding (Keep the functional hiding method) --- */
/* --- Show Input --- */
.proshna-quiz-page .proshna-options-list input[type="checkbox"],
.proshna-quiz-page .proshna-options-list input[type="radio"] {
    /* Make it visible and part of the layout */
    opacity: 1;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    
    /* Adjust spacing */
    margin-right: 10px; /* Add space *after* the input */
    flex-shrink: 0;
}

/* --- Quiz Navigation Buttons --- */
.proshna-quiz-page .proshna-quiz-navigation {
    padding: 30px 0 10px; /* More padding above */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    border-top: 1px solid #e5e7eb; /* Standard border */
    margin-top: 25px; /* Space above nav */
}
.proshna-quiz-page .proshna-quiz-navigation button {
    padding: 12px 25px; /* Larger buttons */
    font-size: 1em; /* Standard font size */
    font-weight: 600; /* Bolder text */
    border: 1px solid #d1d5db; /* Standard border */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff; /* White background */
    color: #374151; /* Dark grey text */
}
.proshna-quiz-page .proshna-quiz-navigation button:hover:not([type="submit"]):not(#proshna-next-btn):not(#proshna-skip-btn) {
    border-color: #9ca3af; /* Darker grey border */
    color: #111827; /* Black text */
    background-color: #f9fafb; /* Subtle background */
}

/* Next / Submit Buttons */
.proshna-quiz-page .proshna-quiz-navigation #proshna-next-btn,
.proshna-quiz-page .proshna-quiz-navigation button[type="submit"] {
    background-color: #0ea5e9; /* Sky blue */
    color: #fff;
    border-color: #0ea5e9;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.2), 0 2px 4px -1px rgba(14, 165, 233, 0.1); /* Blue shadow */
}
.proshna-quiz-page .proshna-quiz-navigation #proshna-next-btn:hover,
.proshna-quiz-page .proshna-quiz-navigation button[type="submit"]:hover {
    background-color: #0284c7; /* Darker sky blue */
    border-color: #0284c7;
    box-shadow: 0 6px 10px -1px rgba(14, 165, 233, 0.3), 0 4px 6px -1px rgba(14, 165, 233, 0.15);
    transform: translateY(-1px); /* Slight lift */
}

/* Skip Button */
.proshna-quiz-page .proshna-quiz-navigation #proshna-skip-btn {
    background-color: transparent;
    border: none;
    color: #ef4444; /* Red */
    padding: 12px 15px; /* Adjust padding */
    font-weight: 500; /* Normal weight */
    box-shadow: none;
}
.proshna-quiz-page .proshna-quiz-navigation #proshna-skip-btn:hover {
    background-color: #fee2e2; /* Light red background on hover */
    color: #dc2626; /* Darker red */
    transform: none; /* No lift */
    box-shadow: none;
}

/* Review Skipped Button */
#proshna-review-skipped-btn {
    background-color: #f59e0b; /* Amber */
    color: #fff;
    border-color: #f59e0b;
}
#proshna-review-skipped-btn:hover {
    background-color: #d97706; /* Darker Amber */
    border-color: #d97706;
}

/* --- Action Buttons (Under Question) --- */
/* (Keep existing styles for these, they are fine) */
.proshna-quiz-page .proshna-question-actions {
    margin-top: 25px; /* More space above actions */
    padding-top: 20px;
    border-top: 1px solid #f0f2f5;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* --- Search Box --- */
.proshna-search-box-container { margin: 25px auto; max-width: 600px; position: relative; }
.proshna-search-form { display: flex; align-items: center; background-color: #fff; border: 1px solid #e0e4e9; border-radius: 50px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: all 0.2s ease-in-out; overflow: hidden; }
.proshna-search-form:focus-within { border-color: #0073aa; box-shadow: 0 4px 15px rgba(0, 115, 170, 0.15); }
.proshna-search-field { flex-grow: 1; border: none !important; background: none; padding: 12px 20px; font-size: 1em; color: #333; outline: none; }
.proshna-search-field::placeholder { color: #999; opacity: 1; }
.proshna-search-submit { border: none; background-color: #0073aa; color: white; padding: 12px 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s; }
.proshna-search-submit:hover { background-color: #005a87; }
.proshna-search-submit .dashicons { font-size: 20px; width: auto; height: auto; }

/* Live Search Results */
#proshna-live-search-results { position: absolute; top: calc(100% + 5px); left: 0; right: 0; background-color: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); z-index: 1000; max-height: 350px; overflow-y: auto; display: none; }
#proshna-live-search-results h4 { margin: 0; padding: 8px 12px; font-size: 0.85em; color: #6b7280; text-transform: uppercase; background-color: #f9fafb; border-bottom: 1px solid #e5e7eb; }
#proshna-live-search-results ul { list-style: none; padding: 0; margin: 0; }
#proshna-live-search-results ul li a { display: block; padding: 8px 12px; text-decoration: none; color: #374151; transition: background-color 0.2s; font-size: 0.9em; }
#proshna-live-search-results ul li a:hover { background-color: #f3f4f6; color: #0073aa; }
.proshna-live-search-no-results, .proshna-live-search-loading { padding: 15px; text-align: center; color: #6b7280; font-size: 0.9em; }

/* ===================================================================
   Revised Sidebar & Widget Styles
   =================================================================== */

/* --- Sidebar Layout --- */
.proshna-quiz-page .proshna-sidebar,
.proshna-quiz-page .proshna-question-sidebar {
    flex-basis: 300px; /* Fixed width */
    flex-shrink: 0; /* Prevent shrinking */
    width: 300px;
    position: -webkit-sticky; /* Sticky Sidebar */
    position: sticky;
    top: 30px; /* Adjust spacing from top */
    align-self: flex-start;
    height: calc(100vh - 60px); /* Limit height to viewport minus some padding */
    overflow-y: auto; /* Allow scrolling within the sidebar if content overflows */
    padding-right: 5px; /* Add slight padding for scrollbar */
}

/* Add some scrollbar styling (optional, browser-specific) */
.proshna-quiz-page .proshna-sidebar::-webkit-scrollbar,
.proshna-quiz-page .proshna-question-sidebar::-webkit-scrollbar {
    width: 6px;
}
.proshna-quiz-page .proshna-sidebar::-webkit-scrollbar-thumb,
.proshna-quiz-page .proshna-question-sidebar::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 3px;
}

/* --- Base Widget Styling --- */
/* Use the standard WordPress widget class selector */
.proshna-quiz-page .proshna-sidebar .widget {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 25px; /* Slightly more horizontal padding */
    margin-bottom: 25px; /* Increased spacing between widgets */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease-in-out;
}
.proshna-quiz-page .proshna-sidebar .widget:hover {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.06);
}

/* --- Widget Title Styling --- */
.proshna-quiz-page .proshna-sidebar .widget .widget-title,
.proshna-quiz-page .proshna-sidebar .widget h3 { /* Include h3 if used */
    margin-top: 0;
    margin-bottom: 18px; /* Increased space below title */
    font-size: 1.2em; /* Slightly larger title */
    color: #111827;
    border-bottom: 1px solid #f0f2f5;
    padding-bottom: 12px;
    font-weight: 600; /* Bolder title */
}

/* --- Widget List Styling (Includes Bullet Point Fix) --- */
/* Target all relevant list types within widgets */
.proshna-quiz-page .proshna-sidebar .widget ul,
.proshna-quiz-page .proshna-sidebar .widget ol,
.proshna-widget-question-list, /* Specific class from recent questions */
.proshna-popular-questions-widget ul, /* Specific class from popular questions */
.proshna-leaderboard-widget-list /* Specific class from leaderboard */
{
    list-style: none !important; /* Ensure no bullets */
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Consistent gap for list items */
}

/* --- General Widget List Item Styling --- */
.proshna-quiz-page .proshna-sidebar .widget ul li,
.proshna-quiz-page .proshna-sidebar .widget ol li {
    position: relative; /* Needed for potential pseudo-elements if themes add them */
    padding-left: 0; /* Ensure no padding is added by themes for bullets */
}

/* Ensure no theme bullets are added via pseudo-elements */
.proshna-quiz-page .proshna-sidebar .widget ul li::before,
.proshna-quiz-page .proshna-sidebar .widget ol li::before {
    display: none !important;
    content: "" !important;
}


/* --- Widget List Link Styling --- */
.proshna-quiz-page .proshna-sidebar .widget ul li a,
.proshna-quiz-page .proshna-sidebar .widget ol li a {
    text-decoration: none;
    color: #374151;
    display: block;
    padding: 10px 12px; /* Adjusted padding */
    border-radius: 6px; /* Slightly rounder */
    transition: color 0.2s, background-color 0.2s;
    font-size: 0.95em;
    background-color: transparent; /* Start transparent */
}
.proshna-quiz-page .proshna-sidebar .widget ul li a:hover,
.proshna-quiz-page .proshna-sidebar .widget ol li a:hover {
    background-color: #f3f4f6; /* Subtle background on hover */
    color: #0073aa; /* Highlight color on hover */
}

/* ===================================================================
   Refined Specific Widget Styles
   =================================================================== */

/* --- Recent/Popular Questions Widget Card --- */
/* The base list item IS the card now */
.proshna-widget-question-item {
    border-radius: 8px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.proshna-widget-question-item:hover {
    border-color: #0073aa;
    background-color: #eef6ff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}
/* Link inside the card covers the whole area */
.proshna-widget-question-item a {
    padding: 12px 15px; /* Padding inside the card link */
    background-color: transparent !important; /* Override general link background */
}
.proshna-widget-question-item a:hover {
     background-color: transparent !important; /* No background change needed on link itself */
     color: #005a87; /* Slightly darker blue on hover */
}

.proshna-widget-item-header {
    display: flex; /* Use flexbox for icon and title alignment */
    align-items: center; /* Vertically align icon and title */
    gap: 8px;
    margin-bottom: 8px;
}
.proshna-widget-item-icon {
    font-size: 16px;
    color: #0757f8; /* Neutral icon color */
    flex-shrink: 0; /* Prevent icon from shrinking */
}
.proshna-widget-item-title {
    font-size: 0.95em;
    font-weight: 600;
    color: #1f2937; /* Darker title color */
    margin: 0; /* Remove default margins */
}
.proshna-widget-item-meta {
    display: flex;
    flex-wrap: wrap; /* Allow meta items to wrap */
    gap: 8px; /* Increased gap */
    font-size: 0.8em; /* Slightly larger meta text */
    padding-left: 24px; /* Indent meta below icon */
    color: #6b7280; /* Meta text color */
}
.proshna-widget-item-category,
.proshna-widget-item-date {
    background-color: #e5e7eb; /* Subtle background for meta tags */
    padding: 3px 8px; /* Padding for meta tags */
    border-radius: 4px; /* Rounded meta tags */
    white-space: nowrap; /* Prevent wrapping within a tag */
}

/* --- Popular Questions Meta --- */
.proshna-popular-meta {
    display: flex;
    align-items: center;
    gap: 12px; /* Increased gap */
    font-size: 0.85em; /* Larger meta */
    color: #6b7280;
    margin-top: 8px; /* Space above meta */
    padding-left: 24px; /* Align with other meta */
}
.proshna-popular-meta span { /* Target view/like count spans */
    display: inline-flex; /* Align icon and number */
    align-items: center;
    gap: 4px; /* Space between icon and number */
}
.proshna-popular-meta .dashicons {
    font-size: 16px;
    color: #9ca3af; /* Lighter icon color */
}

/* --- Winners Widget --- */
.proshna-quiz-page .proshna-winner-box ol li {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space out name and score */
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5; /* Separator line */
}
.proshna-quiz-page .proshna-winner-box ol li:last-child {
    border-bottom: none; /* Remove border on last item */
}
/* Style the rank number if using ol::before */
.proshna-quiz-page .proshna-winner-box ol { counter-reset: winner-rank; }
.proshna-quiz-page .proshna-winner-box ol li::before {
    counter-increment: winner-rank;
    content: counter(winner-rank);
    font-size: 0.8em;
    font-weight: bold;
    color: #9ca3af;
    background-color: #f3f4f6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-right: 10px;
    flex-shrink: 0;
}
.proshna-quiz-page .proshna-winner-box .winner-name {
    font-weight: 500;
    font-size: 0.95em;
    color: #111827;
    flex-grow: 1; /* Allow name to take up space */
}
.proshna-quiz-page .proshna-winner-box .winner-score {
    font-size: 0.9em; /* Slightly larger score */
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
}
.proshna-quiz-page .proshna-winner-box p { /* Style the "no winners" message */
    padding: 15px 0;
    font-size: 0.9em;
    color: #6b7280;
    text-align: center;
}

/* --- Leaderboard Widget --- */
.proshna-quiz-page .proshna-leaderboard-widget-list li {
    display: flex;
    align-items: center;
    gap: 12px; /* Increased gap */
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
}
.proshna-quiz-page .proshna-leaderboard-widget-list li:last-child {
    border-bottom: none;
}
/* Style rank number */
.proshna-quiz-page .proshna-leaderboard-widget-list { counter-reset: leaderboard-rank; }
.proshna-quiz-page .proshna-leaderboard-widget-list li::before {
    counter-increment: leaderboard-rank;
    content: counter(leaderboard-rank);
    font-size: 0.8em;
    font-weight: bold;
    color: #9ca3af;
    width: 20px; /* Make rank number less wide */
    text-align: right;
    flex-shrink: 0;
}
.proshna-quiz-page .proshna-leaderboard-widget-list .avatar {
    width: 32px; /* Slightly larger avatar */
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}
.proshna-quiz-page .proshna-leaderboard-widget-list .user-name {
    font-weight: 500;
    font-size: 0.95em;
    color: #111827;
    flex-grow: 1;
}
.proshna-quiz-page .proshna-leaderboard-widget-list .user-score {
    font-size: 0.9em;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
}

/* --- Featured Quiz (Poll) Widget --- */
.proshna-quiz-page .proshna-quiz-poll-widget img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Rounded image corners */
    margin-bottom: 15px; /* Space below image */
    display: block;
}
.proshna-quiz-page .proshna-quiz-poll-widget h4 { /* Title below image */
    font-size: 1.1em; /* Slightly smaller title */
    margin: 0 0 15px 0; /* Space below title */
    text-align: center;
}
.proshna-quiz-page .proshna-quiz-poll-widget h4 a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}
.proshna-quiz-page .proshna-quiz-poll-widget h4 a:hover {
    color: #0073aa;
}
.proshna-quiz-page .proshna-quiz-poll-widget .proshna-poll-button {
    display: block; /* Make button full width */
    width: 100%;
    padding: 10px 20px; /* Button padding */
    font-size: 0.95em;
    font-weight: 500;
    text-align: center;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s;
    box-sizing: border-box; /* Include padding in width */
}
.proshna-quiz-page .proshna-quiz-poll-widget .proshna-poll-button:hover {
    background-color: #005a87;
    color: #fff;
}

/* ===================================================================
   Mobile Responsiveness for Sidebar (Keep existing rules, ensure consistency)
   =================================================================== */
@media (max-width: 767px) {
    .proshna-quiz-page .proshna-sidebar,
    .proshna-quiz-page .proshna-question-sidebar {
        flex-basis: 100%;
        width: 100%;
        order: 2; /* Ensure it comes after main content */
        position: static; /* Disable sticky */
        margin-top: 20px; /* Space above sidebar on mobile */
        height: auto; /* Allow height to adjust */
        overflow-y: visible; /* Disable internal scroll */
        padding-right: 0; /* Remove scrollbar padding */
    }

    .proshna-quiz-page .proshna-sidebar .widget {
        padding: 15px 20px; /* Reduced padding on mobile */
        margin-bottom: 20px;
    }

    .proshna-quiz-page .proshna-sidebar .widget .widget-title,
    .proshna-quiz-page .proshna-sidebar .widget h3 {
        font-size: 1.15em; /* Adjust title size */
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .proshna-quiz-page .proshna-sidebar .widget ul,
    .proshna-quiz-page .proshna-sidebar .widget ol {
        gap: 8px; /* Adjust gap */
    }

    .proshna-quiz-page .proshna-sidebar .widget ul li a,
    .proshna-quiz-page .proshna-sidebar .widget ol li a {
        padding: 8px 10px; /* Adjust link padding */
        font-size: 0.9em; /* Adjust link font size */
    }

     /* Specific widget adjustments if needed */
    .proshna-widget-question-item a {
        padding: 10px 12px;
    }
     .proshna-widget-item-title {
        font-size: 0.9em;
    }
    .proshna-widget-item-meta {
         font-size: 0.75em;
         padding-left: 0; /* Remove indent on mobile */
         margin-top: 5px; /* Add some space above meta */
    }
     .proshna-popular-meta {
         font-size: 0.8em;
         padding-left: 0; /* Remove indent */
         margin-top: 5px;
    }
}

/* ===================================================================
   Pagination Styles
   =================================================================== */

.proshna-quiz-page .proshna-pagination {
    margin-top: 40px; /* More space above pagination */
    padding-top: 20px;
    border-top: 1px solid #e5e7eb; /* Add a separator line */
    text-align: center; /* Center the pagination links */
}

.proshna-quiz-page .proshna-pagination .page-numbers {
    display: inline-block; /* Allow spacing and centering */
    padding: 8px 14px;
    margin: 0 4px; /* Slightly increased spacing */
    border-radius: 8px;
    font-size: 0.95em; /* Slightly larger font */
    font-weight: 500;
    text-decoration: none;
    color: #374151; /* Default text color */
    background-color: #fff; /* White background */
    border: 1px solid #d1d5db; /* Default border */
    transition: all 0.2s ease-in-out;
}

/* Hover state for page numbers */
.proshna-quiz-page .proshna-pagination .page-numbers:not(.current):not(.dots):hover {
    background-color: #f3f4f6; /* Light grey background on hover */
    border-color: #9ca3af; /* Darker border on hover */
    color: #111827; /* Darker text on hover */
    transform: translateY(-1px); /* Slight lift */
}

/* Styling for the current page number */
.proshna-quiz-page .proshna-pagination .page-numbers.current {
    background-color: #0ea5e9; /* Sky blue background */
    border-color: #0ea5e9;
    color: #fff; /* White text */
    font-weight: 600; /* Bolder */
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.1); /* Subtle blue shadow */
    cursor: default; /* Not clickable */
}

/* Styling for the dots (...) */
.proshna-quiz-page .proshna-pagination .page-numbers.dots {
    padding: 8px 6px; /* Adjust padding for dots */
    background-color: transparent; /* No background */
    border: none; /* No border */
    color: #9ca3af; /* Lighter color */
    cursor: default;
    box-shadow: none;
    transform: none;
}

/* Styling for Prev/Next text links */
.proshna-quiz-page .proshna-pagination .page-numbers.prev,
.proshna-quiz-page .proshna-pagination .page-numbers.next {
    font-weight: 600; /* Make prev/next slightly bolder */
}

/* --- Mobile Adjustments for Pagination --- */
@media (max-width: 767px) {
    .proshna-quiz-page .proshna-pagination {
        margin-top: 30px;
        padding-top: 15px;
    }
    .proshna-quiz-page .proshna-pagination .page-numbers {
        padding: 6px 10px; /* Smaller padding */
        margin: 0 2px; /* Less spacing */
        font-size: 0.9em; /* Slightly smaller font */
    }
    .proshna-quiz-page .proshna-pagination .page-numbers.dots {
         padding: 6px 4px;
    }
}


/* ===================================================================
   Quiz Start Screen Styles
   =================================================================== */

.proshna-quiz-start-screen {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden; /* Ensure image corners are clipped */
    text-align: center;
    width: 100%; /* Fill the main content area */
    box-sizing: border-box; /* Include padding in width */
}

.proshna-quiz-featured-image-start {
    width: 100%;
    max-height: 300px; /* Adjust as needed */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #e5e7eb;
}

.proshna-start-screen-content {
    padding: 30px 40px;
}

.proshna-start-screen-content h2 {
    font-size: 2em;
    color: #111827;
    margin-top: 0;
    margin-bottom: 15px;
}

.proshna-quiz-short-desc-start {
    font-size: 1.1em;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.proshna-quiz-rules {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 30px;
    text-align: left; /* Align rules text left */
    max-width: 550px; /* Limit width of rules box */
    margin-left: auto;
    margin-right: auto;
}

.proshna-quiz-rules h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
    text-align: center; /* Center rules title */
    color: #1f2937;
}

.proshna-quiz-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.proshna-quiz-rules ul li {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
    margin-bottom: 12px; /* Space between rules */
    font-size: 1em;
    color: #374151;
}
 .proshna-quiz-rules ul li:last-child {
     margin-bottom: 0;
 }

.proshna-quiz-rules ul li .dashicons {
    color: #0ea5e9; /* Icon color */
    font-size: 20px;
    flex-shrink: 0; /* Prevent icon shrinking */
}
 .proshna-quiz-rules ul li.negative-marking .dashicons {
     color: #f59e0b; /* Warning color for negative marking */
 }


.proshna-start-quiz-button {
    /* Use styles similar to the related quiz button */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #10b981; /* Green color */
    border: none;
    color: #fff;
    padding: 16px 40px; /* Larger button */
    font-size: 1.15em;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 10px -1px rgba(16, 185, 129, 0.3), 0 2px 6px -1px rgba(16, 185, 129, 0.15);
    transition: all 0.25s ease-in-out;
}
 .proshna-start-quiz-button:before { /* Optional: Add play icon */
     content: "\f126"; /* Dashicons play icon */
     font-family: dashicons;
     font-size: 20px;
     line-height: 1;
 }

.proshna-start-quiz-button:hover {
    background-color: #059669; /* Darker green */
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px -1px rgba(16, 185, 129, 0.35), 0 4px 8px -1px rgba(16, 185, 129, 0.2);
}

/* --- Mobile Styles for Start Screen --- */
@media (max-width: 767px) {
     .proshna-start-screen-content {
        padding: 20px;
     }
     .proshna-start-screen-content h2 {
        font-size: 1.6em;
     }
     .proshna-quiz-short-desc-start {
         font-size: 1em;
         margin-bottom: 25px;
     }
    .proshna-quiz-rules {
         padding: 15px;
         margin-bottom: 25px;
    }
    .proshna-quiz-rules h3 {
         font-size: 1.2em;
    }
    .proshna-quiz-rules ul li {
         font-size: 0.95em;
         margin-bottom: 10px;
    }
     .proshna-start-quiz-button {
        padding: 12px 30px;
        font-size: 1.05em;
     }
}

/* ===================================================================
   Quiz Results Pass/Fail Styles
   =================================================================== */

.proshna-pass-fail-message {
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 8px;
    text-align: center;
    border-left-width: 5px;
    border-left-style: solid;
}

.proshna-pass-fail-message.passed {
    background-color: #f0fdf4; /* Light green */
    border-left-color: #22c55e; /* Green */
    color: #15803d; /* Dark green text */
}

.proshna-pass-fail-message.failed {
    background-color: #fef2f2; /* Light red */
    border-left-color: #ef4444; /* Red */
    color: #b91c1c; /* Dark red text */
}

.proshna-pass-fail-message .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
    display: block;
    margin: 0 auto 10px;
}
.proshna-pass-fail-message.passed .dashicons { color: #22c55e; }
.proshna-pass-fail-message.failed .dashicons { color: #ef4444; }


.proshna-pass-fail-message strong {
    font-size: 1.4em;
    display: block;
    margin-bottom: 8px;
}

.proshna-pass-fail-message p {
    margin: 0;
    font-size: 1em;
    line-height: 1.5;
    color: inherit; /* Ensure text color matches box */
}

/* --- Summary Stats List (UL) --- */
.proshna-quiz-results > p { /* "Here is a summary..." text */
    font-size: 1.05em;
    color: #374151;
    margin-bottom: 15px;
}

.proshna-quiz-results > ul {
    list-style: none;
    padding: 20px 25px; /* Add padding */
    margin: 0 0 35px 0; /* Add bottom margin */
    background-color: #f9fafb; /* Light background */
    border: 1px solid #e5e7eb; /* Subtle border */
    border-radius: 8px; /* Rounded corners */
    display: grid; /* Use grid for alignment */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
    gap: 15px 25px; /* Row and column gap */
}

.proshna-quiz-results > ul > li {
    font-size: 1em;
    color: #4b5563; /* Medium grey text */
    display: flex; /* Align label and value */
    justify-content: space-between; /* Space them out */
    align-items: center;
    padding: 8px 0; /* Padding for spacing */
    border-bottom: 1px dashed #e5e7eb; /* Subtle separator */
}
.proshna-quiz-results > ul > li:last-child {
    border-bottom: none; /* No border on last item */
}

.proshna-quiz-results > ul > li strong {
    font-weight: 600;
    color: #111827; /* Darker color for values */
    font-size: 1.1em;
}
/* Specific colors for correct/wrong */
.proshna-quiz-results > ul > li strong[style*="color: green"] { color: #16a34a !important; }
.proshna-quiz-results > ul > li strong[style*="color: red"] { color: #dc2626 !important; }

/* --- Review Answers Section --- */
.proshna-quiz-review {
    margin-top: 40px; /* More space above review */
    padding-top: 20px;
    border-top: 1px solid #e5e7eb; /* Separator */
}

.proshna-quiz-review h3 {
    font-size: 1.5em; /* Larger heading */
    color: #111827;
    margin-bottom: 25px;
    text-align: center;
}

/* --- Individual Question Review Card --- */
.proshna-review-question {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 25px; /* Space between reviewed questions */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: relative; /* For potential icon overlay */
    overflow: hidden; /* Clip border highlight */
    border-left-width: 4px; /* Add colored border */
}
/* Correct/Incorrect border */
.proshna-review-question.correct { border-left-color: #22c55e; }
.proshna-review-question.incorrect { border-left-color: #ef4444; }


.proshna-review-question-text {
    font-size: 1.15em;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px 0; /* Space below question text */
    line-height: 1.5;
}

/* --- Review Options List --- */
.proshna-review-options-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0; /* Space below options */
    display: grid;
    gap: 8px; /* Space between options */
}

.proshna-review-options-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb; /* Default background */
    font-size: 0.95em;
    position: relative; /* For icon positioning */
}

/* Correct Answer Styling */
.proshna-review-options-list li.is-correct {
    background-color: #ecfdf5; /* Very light green */
    border-color: #6ee7b7; /* Light green border */
    color: #065f46; /* Dark green text */
    font-weight: 500;
}

/* User's Wrongly Selected Answer */
.proshna-review-options-list li.is-wrong-selected {
    background-color: #fff1f2; /* Very light red */
    border-color: #fda4af; /* Light red border */
    color: #9f1239; /* Dark red text */
    font-weight: 500;
}

/* Add Icons/Indicators */
.proshna-review-options-list li:before { /* Add space for icon */
    content: '';
    width: 20px; /* Adjust size as needed */
    height: 20px;
    flex-shrink: 0;
    display: inline-block;
}

/* Correct Answer Indicator */
.proshna-review-options-list li.is-correct:before {
    content: "\f147"; /* Dashicons checkmark */
    font-family: dashicons;
    color: #16a34a; /* Green */
    font-size: 20px;
    line-height: 1;
}

/* User's Wrong Choice Indicator */
.proshna-review-options-list li.is-wrong-selected:before {
    content: "\f158"; /* Dashicons cross */
    font-family: dashicons;
    color: #dc2626; /* Red */
    font-size: 20px;
    line-height: 1;
}

/* Hide the old text indicators if they exist */
.proshna-tick, .proshna-cross {
    display: none;
}

/* --- Review Explanation --- */
.proshna-review-description {
    background-color: #f0fdf4; /* Light green background */
    border: 1px solid #a7f3d0; /* Mint border */
    border-radius: 6px;
    padding: 15px 20px;
    margin-top: 15px; /* Space above explanation */
    color: #047857; /* Darker green text */
    font-size: 0.95em;
    line-height: 1.6;
}

.proshna-review-description strong {
    color: #065f46; /* Even darker green for heading */
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

/* --- Action Buttons at the End --- */
.proshna-quiz-actions {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 15px; /* More space between buttons */
    flex-wrap: wrap; /* Allow wrapping on mobile */
    justify-content: center; /* Center buttons */
}

/* Use existing button styles but ensure consistency */
.proshna-quiz-actions .proshna-quiz-submit-button { /* Target buttons by class */
    background-color: #0ea5e9; /* Sky blue */
    color: white;
    border: none;
    padding: 12px 30px; /* Adjust padding */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    font-weight: 500;
    margin-top: 0; /* Remove top margin */
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
}
.proshna-quiz-actions .proshna-quiz-submit-button:hover {
    background-color: #0284c7; /* Darker blue */
    transform: translateY(-2px);
}
/* Style the "See All Quizzes" button differently */
.proshna-quiz-actions .proshna-quiz-submit-button[style*="background-color: #f0ad4e"] {
    background-color: #64748b; /* Slate grey */
}
.proshna-quiz-actions .proshna-quiz-submit-button[style*="background-color: #f0ad4e"]:hover {
    background-color: #475569; /* Darker slate */
}


/* --- Mobile Adjustments for Results Page --- */
@media (max-width: 767px) {
    .proshna-quiz-page .proshna-quiz-results h2 {
        font-size: 1.5em;
    }
    .proshna-pass-fail-message {
        padding: 15px;
        margin: 20px 0;
    }
    .proshna-pass-fail-message strong { font-size: 1.3em; }
    .proshna-pass-fail-message p { font-size: 0.95em; }

    .proshna-quiz-results > ul {
        padding: 15px;
        gap: 10px 15px; /* Reduce gap */
        grid-template-columns: 1fr; /* Single column */
    }
     .proshna-quiz-results > ul > li { font-size: 0.95em; }
     .proshna-quiz-results > ul > li strong { font-size: 1em; }

    .proshna-quiz-review { margin-top: 30px; padding-top: 15px; }
    .proshna-quiz-review h3 { font-size: 1.3em; margin-bottom: 20px; }

    .proshna-review-question {
        padding: 15px;
        margin-bottom: 20px;
    }
    .proshna-review-question-text { font-size: 1.05em; margin-bottom: 15px; }
    .proshna-review-options-list li { padding: 8px 12px; font-size: 0.9em; gap: 8px; }
    .proshna-review-options-list li:before { width: 18px; height: 18px; font-size: 18px; }

    .proshna-review-description { padding: 12px 15px; font-size: 0.9em; }

    .proshna-quiz-actions { margin-top: 25px; padding-top: 20px; gap: 10px; }
    .proshna-quiz-actions .proshna-quiz-submit-button { padding: 10px 20px; font-size: 0.95em; }
}

/* ===================================================================
   Related Quiz Button Styles
   =================================================================== */

.proshna-related-quiz-section {
    margin-top: 40px; /* Space above the section */
    padding-top: 30px; /* Padding above content */
    padding-bottom: 10px; /* Padding below content */
    border-top: 2px solid #0ea5e9; /* Blue separator line */
    text-align: center; /* Center content */
    background-color: #f9fafb; /* Light background */
    border-radius: 0 0 12px 12px; /* Round bottom corners matching card */
    margin-left: -30px; /* Extend background to card edges */
    margin-right: -30px; /* Extend background to card edges */
    margin-bottom: -30px; /* Extend background to card edges */
}

.proshna-related-quiz-section h4 {
    font-size: 1.5em; /* Larger heading */
    color: #111827;
    margin-bottom: 8px; /* Less space below heading */
    font-weight: 600;
}

.proshna-related-quiz-section p {
    color: #4b5563;
    font-size: 1.05em; /* Slightly larger text */
    margin-bottom: 25px; /* More space below text */
    max-width: 650px; /* Limit text width */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.proshna-related-quiz-btn {
    display: inline-flex; /* Align icon and text */
    align-items: center;
    gap: 8px; /* Space between text and icon */
    background-color: #0ea5e9; /* Sky blue */
    border: none;
    color: #fff;
    padding: 14px 35px; /* Larger padding */
    font-size: 1.05em; /* Larger font */
    font-weight: 600;
    border-radius: 8px; /* Rounded button */
    text-decoration: none;
    box-shadow: 0 4px 10px -1px rgba(14, 165, 233, 0.3), 0 2px 6px -1px rgba(14, 165, 233, 0.15);
    transition: all 0.25s ease-in-out;
}

.proshna-related-quiz-btn .dashicons {
    font-size: 20px; /* Adjust icon size */
    height: auto;
    width: auto;
    transition: transform 0.2s ease-in-out; /* Add animation */
}

.proshna-related-quiz-btn:hover {
    background-color: #0284c7; /* Darker blue */
    color: #fff; /* Ensure text remains white */
    transform: translateY(-3px); /* Lift effect */
    box-shadow: 0 8px 15px -1px rgba(14, 165, 233, 0.35), 0 4px 8px -1px rgba(14, 165, 233, 0.2);
}

.proshna-related-quiz-btn:hover .dashicons {
    transform: translateX(3px); /* Move arrow slightly on hover */
}

/* --- Mobile Adjustments --- */
@media (max-width: 767px) {
    .proshna-related-quiz-section {
        margin-top: 30px;
        padding-top: 20px;
        padding-bottom: 5px;
        margin-left: -15px; /* Adjust negative margin for mobile padding */
        margin-right: -15px;
        margin-bottom: -15px;
    }
     .proshna-related-quiz-section h4 {
        font-size: 1.3em;
     }
     .proshna-related-quiz-section p {
        font-size: 1em;
        margin-bottom: 20px;
     }
    .proshna-related-quiz-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .proshna-related-quiz-btn .dashicons {
         font-size: 18px;
    }
}


/* ===================================================================
   Gallery Card Button Icon Styles
   =================================================================== */

/* Default (Desktop): Show text, hide icon */
/* Add flex properties for alignment */
.proshna-gallery-item-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.proshna-gallery-item-button .proshna-button-icon {
    display: none; /* Hide icon by default */
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
}

.proshna-gallery-item-button .proshna-button-text {
    display: inline; /* Show text by default */
    line-height: 1.4;
}

/* Style the "Add Note" button differently */
.proshna-gallery-item-button.proshna-add-note-gallery-btn {
    background-color: #10b981; /* Green */
    border-color: #059669;
}
.proshna-gallery-item-button.proshna-add-note-gallery-btn:hover {
    background-color: #059669;
}

/* --- Mobile Responsiveness (for gallery buttons) --- */
@media (max-width: 767px) {
    
    .proshna-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; /* Reduced gap */
}
    
    .proshna-gallery-item-buttons {
        gap: 8px; /* Tighter gap for icon buttons */
    }

    .proshna-gallery-item-button {
        /* Make buttons smaller and squarer for icons */
        padding: 8px !important;
        min-width: 40px; /* Minimum tap size */
        font-size: 1em !important; /* Reset font size */
        
        /* Center the icon */
        justify-content: center;
        line-height: 1;
    }

    /* On mobile, HIDE the text */
    .proshna-gallery-item-button .proshna-button-text {
        display: none;
    }

    /* On mobile, SHOW the icon */
    .proshna-gallery-item-button .proshna-button-icon {
        display: inline-block;
        margin: 0;
    }
}
/* ===================================================================
   Combination Roman Question Styles
   =================================================================== */

.proshna-statements-display-section {
    margin-bottom: 15px;
    padding-left: 5px; /* হালকা ইনডেন্ট */
    border-left: 3px solid #eee; /* হালকা বাম বর্ডার */
    margin-left: 10px;
}

.proshna-statements-display-section.quiz-view {
    margin-left: 0; /* কুইজের সময় ইনডেন্ট দরকার নেই */
     border-left: none;
     padding-left: 0;
}


.proshna-statement-item {
    margin: 5px 0;
    font-size: 1em;
    color: #333;
    line-height: 1.6;
}

/* Admin Statement Input Style */
.proshna-statement-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}
.proshna-statement-label {
    font-weight: bold;
    min-width: 25px; /* Ensure alignment */
    text-align: right;
}

/* Adjust Option Letter/Icon Order */
.proshna-option-item .proshna-option-letter,
.proshna-option-item-single .proshna-option-letter,
.proshna-quiz-page .proshna-options-list .proshna-option-letter {
    order: 0; /* Letter first */
    margin-right: 8px;
}

.proshna-option-item > span:not(.proshna-option-letter):not(.proshna-option-icon),
.proshna-option-item-single > span:not(.proshna-option-letter):not(.proshna-option-icon),
.proshna-quiz-page .proshna-options-list label > span:not(.proshna-option-letter) {
    order: 1; /* Text second */
    flex-grow: 1; /* Take remaining space */
}

.proshna-option-item .proshna-option-icon,
.proshna-option-item-single .proshna-option-icon {
     order: 2; /* Icon last */
     margin-left: auto; /* Push to right */
}

/* Remove default icon space from option text in quiz form */
.proshna-quiz-page .proshna-options-list label {
    gap: 0; /* Let letter handle the gap */
}
/* ===================================================================
   Stimulus (Passage) Styles
   =================================================================== */
.proshna-question-stimulus {
    padding: 15px 20px;
    background-color: #f8f9fa; /* হালকা ধূসর ব্যাকগ্রাউন্ড */
    border: 1px solid #e9ecef; /* হালকা বর্ডার */
    border-radius: 8px;
    margin-bottom: 20px; /* প্রশ্ন থেকে দূরত্ব */
    font-size: 0.95em;
    line-height: 1.7;
    color: #212529; /* গাঢ় টেক্সট */
}

.proshna-question-stimulus p:last-child {
    margin-bottom: 0;
}

/* Quiz view specific adjustments */
.proshna-quiz-page .proshna-question-block .proshna-question-stimulus {
    background-color: #fff; /* কুইজের ভিতরে সাদা ব্যাকগ্রাউন্ড */
    border-color: #e5e7eb;
}

/* Mobile responsive padding */
@media (max-width: 767px) {
    .proshna-question-stimulus {
        padding: 12px 15px;
        margin-bottom: 15px;
    }
}

/* ===================================================================
   Homepage Category Browser (New Styles)
   =================================================================== */

/* This targets the section from your screenshot */
.proshna-homepage-wrapper .proshna-category-grid {
    /* Main container styling */
    display: block; /* Change from flex to block */
    background-color: #f9fafb; /* Light background */
    border: 1px solid #e5e7eb; /* Subtle border */
    border-radius: 12px; /* Rounded corners */
    padding: 25px 30px; /* Ample padding */
    margin-bottom: 40px; /* Space below */
}

/* This styles the title "আপনার শ্রেণি নির্বাচন করুন" */
.proshna-homepage-wrapper .proshna-section-header {
    display: block; /* Stack title and links */
    border-bottom: none; /* Remove the old border */
    padding-bottom: 0;
    margin-bottom: 18px; /* Space between title and links */
    text-align: center; /* Center the title */
}

/* Specific styling for the title text */
.proshna-homepage-wrapper .proshna-section-header .proshna-section-title {
    font-size: 1.6em;
    color: #111827; /* Dark text color */
    margin: 0;
}

/* This removes the "View All" link from this specific section */
.proshna-category-grid .proshna-section-view-all {
    display: none;
}

/* This creates the new grid for the category links */
.proshna-homepage-wrapper .proshna-category-grid-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px; /* Gap between buttons */
    justify-content: center; /* Center the buttons */
}

/* This styles each link as a modern "pill" or "tag" */
.proshna-homepage-wrapper .proshna-category-item {
    background-color: #fff;
    color: #374151; /* Dark grey text */
    padding: 10px 22px; /* Button padding */
    border-radius: 50px; /* Makes it a "pill" */
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    border: 1px solid #d1d5db; /* Light border */
    transition: all 0.2s ease-in-out;
}

/* This adds a nice hover effect */
.proshna-homepage-wrapper .proshna-category-item:hover {
    background-color: #0ea5e9; /* Your site's blue color */
    color: #fff;
    border-color: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2);
}

/* Mobile responsive styles */
@media (max-width: 767px) {
    .proshna-homepage-wrapper .proshna-category-grid {
        padding: 20px 15px; /* Smaller padding on mobile */
    }

    .proshna-homepage-wrapper .proshna-section-header .proshna-section-title {
        font-size: 1.4em; /* Smaller title on mobile */
    }

    .proshna-homepage-wrapper .proshna-category-grid-items {
        gap: 10px; /* Tighter gap on mobile */
    }

    .proshna-homepage-wrapper .proshna-category-item {
        font-size: 0.9em;
        padding: 8px 18px; /* Smaller buttons on mobile */
    }
}

/* ===================================================================
   Additional Mobile Device Styles (max-width: 767px)
   =================================================================== */
@media (max-width: 767px) {

    /* --- Global Layout & Typography --- */
    body {
        /* Reduce base font size slightly to scale down all 'em' units */
        font-size: 15px;
    }

    .proshna-quiz-page .proshna-single-question-modern-wrapper,
    .proshna-quiz-page .proshna-page-wrapper {
        gap: 0; /* Remove gap, stacking will handle it */
    }

    /* Reduce padding on main content cards */
    .proshna-quiz-page .proshna-question-card-main,
    .proshna-quiz-page .proshna-main-content {
        padding: 15px;
    }
    
    /* Reduce padding on the single quiz wrapper (which has the bleed image) */
    .proshna-quiz-page .proshna-quiz-single-wrapper {
         padding: 15px; 
    }

    /* Adjust the bleed-effect image based on new 15px padding */
    .proshna-quiz-page .proshna-quiz-featured-image {
         width: calc(100% + 30px); /* 15px padding on each side */
         margin: -15px -15px 20px -15px; 
         max-height: 180px; /* Lower image height on mobile */
    }


    /* --- Page Headers --- */
    .proshna-quiz-page .entry-header,
    .proshna-quiz-page .page-header,
    .proshna-quiz-page .tdb-title {
        padding: 20px 25px; /* Reduce header padding */
        margin-bottom: 20px;
    }

    .proshna-quiz-page .entry-header .entry-title,
    .proshna-quiz-page .page-header .page-title,
    .proshna-quiz-page .tdb-title-text {
        font-size: 1.8em !important; /* Reduce title size */
        line-height: 1.3;
    }


    /* --- Homepage --- */
    .proshna-homepage-wrapper .proshna-hero-section {
        padding: 40px 20px; /* Reduce hero padding */
        margin-bottom: 30px;
    }

    .proshna-homepage-wrapper .proshna-hero-content h1 {
        font-size: 2.0em; /* Reduce hero title */
    }

    .proshna-homepage-wrapper .proshna-hero-content p {
        font-size: 1.05em; /* Reduce hero text */
        margin-bottom: 25px;
    }

    /* Stack hero buttons */
    .proshna-homepage-wrapper .proshna-hero-buttons {
         flex-direction: column;
         gap: 12px;
         /* Ensure search box is still below */
         margin-bottom: 30px; 
    }
    
    .proshna-homepage-wrapper .proshna-hero-buttons .proshna-btn {
         width: 100%; /* Make stacked buttons full-width */
         box-sizing: border-box; /* Include padding in width */
         text-align: center;
    }

    .proshna-homepage-wrapper .proshna-content-section {
        margin-bottom: 30px;
    }

    /* Stack homepage section title and 'view all' link */
    .proshna-homepage-wrapper .proshna-section-header {
         flex-direction: column;
         align-items: flex-start;
         gap: 8px;
    }
    
    .proshna-homepage-wrapper .proshna-section-title {
         font-size: 1.4em; /* Reduce section title */
    }
    
    /* Adjust search box for mobile */
    .proshna-search-box-container {
         margin: 20px auto;
    }
    .proshna-search-field {
         padding: 10px 18px;
         font-size: 0.95em;
    }
    .proshna-search-submit {
         padding: 10px 15px;
    }


    /* --- Single Quiz Page --- */
    .proshna-quiz-page .proshna-quiz-header h2 {
        font-size: 1.5em; /* Reduce quiz title */
    }
    
    /* Stack timer and counter */
    .proshna-quiz-page .proshna-quiz-meta {
        flex-direction: column; 
        align-items: flex-start;
        gap: 8px;
    }
    
    .proshna-quiz-page .proshna-question-block {
         padding: 20px 0; /* Reduce vertical padding */
    }

    .proshna-quiz-page .proshna-question-title {
        font-size: 1.15em !important; /* Reduce question title */
        margin-bottom: 20px !important;
    }
    
    /* Reduce option padding */
    .proshna-quiz-page .proshna-options-list label {
         padding: 12px 15px !important; 
         gap: 10px;
    }
    
    .proshna-quiz-page .proshna-options-list .proshna-option-letter {
         width: 26px;
         height: 26px;
         margin-right: 5px;
    }
    
    /* Improve quiz navigation layout */
    .proshna-quiz-page .proshna-quiz-navigation {
         padding: 20px 0 5px;
         margin-top: 20px;
         flex-wrap: wrap; /* Allow nav buttons to wrap */
         gap: 12px;
    }
    
    .proshna-quiz-page .proshna-quiz-navigation button {
         padding: 10px 20px; /* Reduce button padding */
         font-size: 0.95em;
         flex-grow: 1; /* Allow buttons to grow */
    }
    
    /* Create a 2-button layout for prev/next */
    .proshna-quiz-page .proshna-quiz-navigation button#proshna-prev-btn {
         order: 1;
         flex-basis: 40%;
    }
    .proshna-quiz-page .proshna-quiz-navigation button#proshna-next-btn,
    .proshna-quiz-page .proshna-quiz-navigation button[type="submit"] {
         order: 2;
         flex-basis: 40%;
    }
    /* Make skip/review full-width */
    .proshna-quiz-page .proshna-quiz-navigation #proshna-skip-btn,
    #proshna-review-skipped-btn {
         order: 3;
         flex-basis: 100%;
         text-align: center;
         justify-content: center;
    }


    /* --- Gallery & Filters --- */
    .proshna-gallery-filters {
         padding: 10px;
         gap: 10px;
    }
    .proshna-gallery-filters input[type="search"],
    .proshna-gallery-filters select {
         padding: 8px 10px;
         font-size: 0.9em;
    }
    
    /* List view adjustments */
    .list-view .proshna-question-gallery-link {
         padding: 10px 12px;
         gap: 10px;
    }
    .list-view .proshna-question-gallery-link::before {
         font-size: 18px;
         padding: 6px;
    }
    .list-view .proshna-question-gallery-title {
         font-size: 0.95em;
         margin-bottom: 5px;
    }
    
    .proshna-option-item, .proshna-option-item-single{
            display: flex;
    align-items: center;
    
    padding: 4px 10px !important;
    border-radius: 1px !important;
    transition: background-color 0.2s, border-color 0.2s;
    }
    
    .proshna-option-item-single.is-incorrect{
            background-color: #ffffff !important;
    border-color: #ededed !important;
    }
    
    .proshna-option-item-single.is-incorrect .proshna-option-letter{
        background-color: #b7b7b7;
    color: #242222;
    }
    
    .proshna-note-toggle-btn, .proshna-add-note-btn{
        background: #001dff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 6px;
    font-weight: 400;
    color: #ffffff;
    font-size: 13px;
    }
    
    .proshna-note-wrapper{
    margin-top: 0!important;
    border-top: none!important;
    padding-top: 0!important;
    }
    
    .single-content h1, .single-content h2, .single-content h3, .single-content h4, .single-content h5, .single-content h6{
            margin: 1px 0 1px!important;
    }
}


/* ===================================================================
   Very Small Screen Adjustments (max-width: 480px)
   =================================================================== */
@media (max-width: 480px) {
    
    
    
    /* Make all quiz nav buttons full width */
    .proshna-quiz-page .proshna-quiz-navigation button#proshna-prev-btn,
    .proshna-quiz-page .proshna-quiz-navigation button#proshna-next-btn,
    .proshna-quiz-page .proshna-quiz-navigation button[type="submit"] {
         flex-basis: 100%;
    }

    /* Reduce padding even more on main wrappers */
    .proshna-quiz-page .proshna-question-card-main,
    .proshna-quiz-page .proshna-main-content,
    .proshna-quiz-page .proshna-quiz-single-wrapper {
         padding: 10px;
    }

    /* Adjust bleed image for 10px padding */
    .proshna-quiz-page .proshna-quiz-featured-image {
         width: calc(100% + 20px);
         margin: -10px -10px 15px -10px;
    }
    
    /* Adjust related quiz bleed for 10px padding */
    .proshna-related-quiz-section {
         margin-left: -10px;
         margin-right: -10px;
         margin-bottom: -10px;
         padding-top: 15px;
         padding-left: 10px;
         padding-right: 10px;
    }

    /* Reduce padding on start screen */
    .proshna-start-screen-content {
         padding: 15px;
    }
    .proshna-quiz-rules {
         padding: 10px;
    }
    .proshna-quiz-rules ul li {
         font-size: 0.9em;
    }
}

/* ===================================================================
   Single Question Page - Redesigned "Also Appears In"
   =================================================================== */

.proshna-appears-in-section {
    margin-top: 30px; /* Space above */
    padding-top: 25px; /* Space inside */
    border-top: 1px solid #e5e7eb; /* Separator line */
}

.proshna-appears-in-section .proshna-section-heading {
    font-size: 1.3em;
    font-weight: 600;
    color: #111827;
    margin-bottom: 15px; /* Space below heading */
}

.proshna-appears-in-list {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    gap: 10px; /* Space between items */
}

.proshna-appears-in-item {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between icon and text */
    padding: 12px 15px;
    background-color: #f9fafb; /* Light background */
    border: 1px solid #e5e7eb;
    border-radius: 8px; /* Rounded corners */
    text-decoration: none;
    font-weight: 500;
    color: #374151; /* Dark grey text */
    transition: all 0.2s ease-in-out;
}

.proshna-appears-in-item:hover {
    background-color: #eef6ff; /* Light blue on hover */
    border-color: #0ea5e9;
    color: #005a87; /* Dark blue text */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.proshna-appears-in-item .dashicons {
    color: #0ea5e9; /* Blue icon */
    flex-shrink: 0;
}


/* ===================================================================
   Single Question Page - Redesigned "Related Questions"
   =================================================================== */

/* This targets the "Related Questions" widget on the single question page */
.proshna-question-card-main .proshna-sidebar-widget {
    margin-top: 30px;
    padding: 25px;
    background-color: #fff; /* White background */
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.proshna-question-card-main .proshna-sidebar-widget h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.3em;
    color: #111827;
    border-bottom: 1px solid #f0f2f5;
    padding-bottom: 12px;
    font-weight: 600;
}

.proshna-question-card-main .proshna-sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Space between links */
}

.proshna-question-card-main .proshna-sidebar-widget ul li {
    padding: 0;
}

.proshna-question-card-main .proshna-sidebar-widget ul li::before {
    display: none; /* Remove any theme bullets */
}

.proshna-question-card-main .proshna-sidebar-widget ul li a {
    text-decoration: none;
    color: #374151;
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    transition: color 0.2s, background-color 0.2s;
    font-size: 0.95em;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

.proshna-question-card-main .proshna-sidebar-widget ul li a:hover {
    background-color: #f3f4f6; /* Light grey on hover */
    color: #0073aa;
}

/* --- Modern Search Results Page Styling --- */

.proshna-search-results-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 35px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.proshna-search-results-header {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
    font-weight: 700;
}

/* Tabs Navigation */
.proshna-search-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.proshna-tab-link {
    text-decoration: none;
    color: #6b7280;
    padding: 12px 25px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
}

.proshna-tab-link:hover {
    color: #0ea5e9;
    background-color: #f9fafb;
    border-radius: 8px 8px 0 0;
}

.proshna-tab-link.active {
    color: #0ea5e9;
    border-bottom-color: #0ea5e9;
    background-color: transparent;
}

/* Tab Content Animation */
.proshna-tab-content {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}
.proshna-tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Result Cards List */
.proshna-results-card-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* Card Item */
.proshna-result-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.proshna-result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #0ea5e9;
}

.proshna-result-card a {
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: #374151;
    gap: 18px;
}

/* Icon Styling */
.proshna-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #e0f2fe; /* Light Blue */
    color: #0284c7; /* Dark Blue */
    border-radius: 50%;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.proshna-result-card:hover .proshna-result-icon {
    background-color: #0ea5e9;
    color: #ffffff;
}

.proshna-result-icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

/* Text Styling */
.proshna-result-text {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
}

/* No Results */
.proshna-no-results-message {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 1.1em;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px dashed #d1d5db;
}

/* Responsive Design */
@media (max-width: 600px) {
    .proshna-search-results-wrapper {
        padding: 20px;
        margin: 20px 10px;
    }
    .proshna-search-tabs {
        gap: 0;
        overflow-x: auto;
    }
    .proshna-tab-link {
        padding: 10px 15px;
        font-size: 0.9em;
        white-space: nowrap;
    }
    .proshna-search-results-header {
        font-size: 1.5rem;
    }
    .proshna-result-card a {
        padding: 15px;
    }
}

/* Dashboard Card Style */
.proshna-profile-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 4px solid #3498db; /* Brand Color */
}

/* Flexbox Stats Container */
.proshna-stats-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* Progress Bar Style */
.proshna-progress-bg {
    background: #eee;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}
.proshna-progress-fill {
    background: #27ae60;
    height: 100%;
}

.proshna-profile-dashboard {
    max-width: 1100px;
    margin: 20px auto;
    font-family: inherit;
    color: #333;
}

/* Header */
.proshna-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}
.proshna-user-meta { display: flex; align-items: center; gap: 20px; }
.proshna-avatar img { border-radius: 50%; border: 3px solid #f0f0f0; }

/* Stats Grid */
.proshna-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.proshna-stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-bottom: 4px solid #3498db;
}
.proshna-stat-value { display: block; font-size: 28px; font-weight: bold; color: #2c3e50; }
.proshna-stat-label { font-size: 14px; color: #7f8c8d; text-transform: uppercase; letter-spacing: 0.5px; }

/* Tabs */
.proshna-tab-link {
    background: #f8f9fa;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    transition: 0.3s;
}
.proshna-tab-link.active { background: #fff; color: #3498db; border-bottom: 2px solid #3498db; }
.proshna-tab-content { display: none; background: #fff; padding: 25px; border-radius: 0 12px 12px 12px; }
.proshna-tab-content.active { display: block; }

/* Sidebar Performance Bars */
.proshna-category-stat { margin-bottom: 15px; }
.proshna-cat-info { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; }
.proshna-progress-bar { background: #eee; height: 8px; border-radius: 10px; overflow: hidden; }
.proshna-progress-fill { background: #2ecc71; height: 100%; transition: width 0.5s ease; }

/* Layout Wrapper */
.proshna-profile-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}
@media (max-width: 850px) {
    .proshna-profile-content-wrapper { grid-template-columns: 1fr; }
    .proshna-profile-header { flex-direction: column; text-align: center; }
}
.proshna-tab-content { display: none; }
.proshna-tab-content.active { display: block; }
.proshna-tabs-nav { display: flex; gap: 10px; border-bottom: 2px solid #eee; margin-bottom: 25px; }
.proshna-tab-link { background: none; border: none; padding: 10px 15px; cursor: pointer; color: #666; }
.proshna-tab-link.active { border-bottom: 2px solid #3498db; color: #3498db; font-weight: bold; }
.cv-field-group { margin-bottom: 15px; }
.cv-field-group label { display: block; font-weight: 600; margin-bottom: 5px; }
.cv-field-group textarea { width: 100%; border: 1px solid #ddd; border-radius: 4px; padding: 10px; }

.proshna-note-actions {
    display: flex;
    gap: 5px;
}

.proshna-note-action-btn {
    background: transparent;
    border: 1px solid #e74c3c; /* Red color from screenshot */
    color: #e74c3c;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.proshna-note-action-btn:hover {
    background: #e74c3c;
    color: #fff;
}

/* --- Verified Badge Style --- */
.proshna-verified-badge {
    display: inline-flex;
    align-items: center;
    background-color: #1d9bf0; /* Modern blue */
    color: #ffffff;
    padding: 3px 10px 3px 8px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    margin-left: 10px;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Style the icon explicitly (No ::before needed) */
.proshna-verified-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
    margin-right: 4px;
    text-decoration: none;
}