/* GKSchools Premium Study Layout Stylesheet */

:root {
    --primary-teal: #0f766e;
    --primary-light: #f0fdfa;
    --dark-slate: #1e293b;
    --body-slate: #334155;
    --border-gray: #e2e8f0;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.gks-study-main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 16px;
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--dark-slate);
}

/* Hero Section */
.gks-study-hero {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    border-radius: 16px;
    padding: 30px;
    color: white;
    margin-bottom: 25px;
    box-shadow: var(--shadow-medium);
}
.gks-study-hero h1 {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    margin: 12px 0;
    line-height: 1.25;
}
.gks-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    opacity: 0.9;
    margin-top: 15px;
}
.gks-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Two Column Grid */
.gks-study-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 992px) {
    .gks-study-grid {
        grid-template-columns: 3fr 1fr;
    }
}

/* Cards & Content */
.gks-content-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-gray);
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}
.gks-content-card h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark-slate);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 16px;
}
.gks-content-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-teal);
    margin-top: 20px;
}

/* Sticky Sidebar */
.gks-sidebar-sticky {
    position: static;
}
@media (min-width: 992px) {
    .gks-sidebar-sticky {
        position: sticky;
        top: 80px;
        align-self: start;
    }
}

.gks-sidebar-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-gray);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}
.gks-sidebar-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 6px;
}
.gks-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gks-sidebar-list li {
    margin-bottom: 8px;
}
.gks-sidebar-list a {
    color: var(--body-slate);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: block;
}
.gks-sidebar-list a:hover {
    color: var(--primary-teal);
}

/* Feature Boxes */
.gks-info-box {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary-teal);
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}
.gks-info-box h4 {
    font-weight: 800;
    margin: 0 0 6px 0;
    color: var(--primary-teal);
}

/* FAQ Section */
.gks-faq-item {
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}
.gks-faq-summary {
    background: #f8fafc;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.gks-faq-summary::-webkit-details-marker {
    display: none;
}
.gks-faq-content {
    padding: 12px 16px;
    border-top: 1px solid var(--border-gray);
    background: white;
}

/* Action Buttons */
.gks-btn-action {
    background: white;
    color: var(--dark-slate);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.gks-btn-action:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Category Badge */
.gks-category-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Premium Question Cards UI */
.gks-qcard {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.gks-qcard:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px rgba(0,0,0,0.08);
}
.gks-qcard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.gks-qcard-num {
    background: var(--primary-light);
    color: var(--primary-teal);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}
.gks-qcard-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.gks-badge-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 100px;
    text-transform: uppercase;
}
.gks-badge-chip.easy { background: #dcfce7; color: #15803d; }
.gks-badge-chip.medium { background: #fef9c3; color: #a16207; }
.gks-badge-chip.hard { background: #fee2e2; color: #b91c1c; }
.gks-badge-chip.exam { background: #f1f5f9; color: #475569; }

.gks-qcard-title {
    font-size: clamp(17px, 2vw, 20px);
    font-weight: 800;
    line-height: 1.4;
    color: var(--dark-slate);
    margin: 0 0 16px 0;
}
.gks-qcard-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.gks-qcard-option-item {
    background: #f8fafc;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 15px;
    color: var(--body-slate);
    transition: all 0.2s ease;
    cursor: pointer;
}
.gks-qcard-option-item:hover {
    background: var(--primary-light);
    border-color: var(--primary-teal);
    color: var(--primary-teal);
}
.gks-qcard-option-item.correct {
    background: #dcfce7 !important;
    border-color: #10b981 !important;
    color: #065f46 !important;
    font-weight: 700;
}
.gks-qcard-option-item.incorrect {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
    color: #991b1b !important;
    font-weight: 700;
}
.gks-qcard-option-item.disabled {
    pointer-events: none;
    opacity: 0.85;
}

.gks-qcard-details {
    margin-top: 15px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
}
.gks-qcard-summary {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    color: white !important;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(15, 118, 110, 0.2);
}
.gks-qcard-summary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -1px rgba(15, 118, 110, 0.3);
    background: #0d9488;
}
.gks-qcard-summary::-webkit-details-marker {
    display: none;
}
.gks-qcard-summary::after {
    content: '▼';
    font-size: 10px;
}
.gks-qcard-details[open] .gks-qcard-summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.gks-qcard-details[open] .gks-qcard-summary::after {
    content: '▲';
}
.gks-qcard-ansbox {
    padding: 14px 16px;
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    font-size: 15px;
    color: #065f46;
}
.gks-qcard-expl {
    padding: 12px 16px;
    background: #fffbeb;
    border-top: 1px dashed var(--border-gray);
    font-size: 14px;
    color: #92400e;
}
.gks-qcard-note {
    padding: 10px 16px;
    background: #fef2f2;
    border-top: 1px dashed var(--border-gray);
    font-size: 13px;
    color: #991b1b;
}

.gks-qcard-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.gks-btn-action-small {
    background: transparent;
    color: #64748b;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.gks-btn-action-small:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--primary-teal);
}

/* Interstitial boxes */
.gks-interstitial-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    color: #92400e;
}
.gks-interstitial-card h4 {
    margin-top: 0;
    font-weight: 800;
    font-size: 16px;
}

/* Print Styles */
@media print {
    .gks-sidebar-sticky, header, footer, .gks-btn-action, .gks-qcard-actions, .my-content-div2 {
        display: none !important;
    }
    .gks-study-grid {
        grid-template-columns: 1fr !important;
    }
    .gks-qcard {
        box-shadow: none !important;
        page-break-inside: avoid;
    }
}

/* Interactive Quiz System Styles */
.gks-quiz-toggle-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
}
.gks-quiz-toggle-title {
    font-weight: 800;
    color: var(--dark-slate);
    font-size: 15px;
}
.gks-btn-quiz-toggle {
    background: var(--primary-teal);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.gks-btn-quiz-toggle:hover {
    background: #0d9488;
    transform: translateY(-1px);
}

.gks-quiz-panel {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 24px;
}
.gks-quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 12px;
    margin-bottom: 16px;
}
.gks-quiz-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--body-slate);
}
.gks-quiz-stat-item span {
    color: var(--primary-teal);
}
.gks-quiz-progress {
    background: #e2e8f0;
    border-radius: 100px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.gks-quiz-progress-inner {
    background: var(--primary-teal);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.gks-quiz-question-container {
    min-height: 120px;
    margin-bottom: 20px;
}

.gks-quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-gray);
    padding-top: 16px;
    margin-top: 16px;
}
.gks-quiz-btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-gray);
    background: white;
    color: var(--body-slate);
}
.gks-quiz-btn:hover:not(:disabled) {
    background: #f1f5f9;
}
.gks-quiz-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.gks-quiz-btn-primary {
    background: var(--primary-teal);
    color: white;
    border: none;
}
.gks-quiz-btn-primary:hover:not(:disabled) {
    background: #0d9488;
}

.gks-quiz-result-card {
    text-align: center;
    padding: 30px;
}
.gks-quiz-result-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-teal);
    margin-bottom: 8px;
}
.gks-quiz-result-motivational {
    font-size: 16px;
    color: var(--body-slate);
    margin-bottom: 24px;
}
.gks-quiz-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.gks-quiz-badge-card {
    background: #f8fafc;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 16px 12px;
}
.gks-quiz-badge-card .num {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark-slate);
    display: block;
    margin-bottom: 4px;
}
.gks-quiz-badge-card .label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}
.gks-quiz-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

