/* Page Wrapper */
.cgk-page-wrapper {
    display: flex;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 10px auto;
    gap: 30px;
    justify-content: center;
}

/* Sidebars */
.cgk-left-sidebar,
.cgk-right-sidebar {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    padding: 0;
}

/* Main Content */
.cgk-main-content {
    flex: 1 1 600px;
    min-width: 0;
}

/* Responsive Design for Mobile */
@media (max-width: 1024px) {
    .cgk-page-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .cgk-main-content,
    .cgk-left-sidebar,
    .cgk-right-sidebar {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
    }

    /* Order: Main first, then left sidebar, then right */
    .cgk-main-content {
        order: 1;
    }
    .cgk-left-sidebar {
        order: 2;
    }
    .cgk-right-sidebar {
        order: 3;
    }
}

/* Sidebar Sections */
.cgk-sidebar-section h3 {
    font-size: 22px;
    margin: 0;
    padding: 2px 12px;
    background: linear-gradient(135deg, #cd3270, #ffd515);
    color: #fff;
    width: 100%;
    box-sizing: border-box;
    border: none;
    text-align: left;
}

.cgk-cloud-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding: 6px 15px;
}

.cgk-sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.cgk-sidebar-section ul li {
    padding: 4px 15px;
    border-bottom: 1px solid #dedede;
}

.cgk-sidebar-section ul li:last-child {
    border-bottom: none;
}

.cgk-sidebar-section ul li a {
    text-decoration: none;
    color: #0073aa;
    font-size: 16px;
}

.cgk-sidebar-section ul li a:hover {
    text-decoration: underline;
    color: #005a87;
}

/* Share Buttons */
.cgk-share-buttons {
    margin: 20px 0;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 12px;
}

.cgk-share-buttons h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.cgk-share-btn {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-weight: 600;
}

.cgk-share-fb { background: #3b5998; }
.cgk-share-tw { background: #1da1f2; }
.cgk-share-wa { background: #25d366; }
.cgk-share-copy { background: #6c757d; cursor: pointer; border: none; }

.cgk-share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Related GKs */
.cgk-related-gks {
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.cgk-related-gks h3 {
    font-size: 26px;
    margin-bottom: 18px;
    text-align: center;
    color: #333;
}

/* Base GK Container */
.cgk-gk-container {
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Material Card for Each Question */
.cgk-question-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 25px;
    transition: box-shadow 0.3s;
}

.cgk-question-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.cgk-question-title {
    font-size: 22px;
    color: #222;
    margin-bottom: 15px;
}

.cgk-question-img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cgk-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cgk-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.cgk-option:hover {
    background: #f0f8ff;
}

.cgk-option-letter {
    font-weight: bold;
    margin-right: 10px;
}

.cgk-option-content p {
    margin: 0;
}

.cgk-option img {
    max-width: 150px;
    margin-left: 10px;
}

.cgk-correct {
    background: #d4edda !important;
    border-color: #28a745 !important;
}

.cgk-wrong {
    background: #f8d7da !important;
    border-color: #dc3545 !important;
}

.cgk-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.cgk-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.cgk-hint-btn { background: #ffc107; color: #333; }
.cgk-view-answer-btn { background: #17a2b8; color: white; }
.cgk-description-btn { background: #6f42c1; color: white; }

.cgk-btn:hover {
    opacity: 0.9;
}

.cgk-hint-section, .cgk-description-section {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-style: italic;
}

/* Load More */
#cgk-load-more-questions {
    display: block;
    margin: 20px auto;
    padding: 12px 30px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

#cgk-load-more-questions:hover {
    background: #005a87;
}

/* Breadcrumb */
.cgk-breadcrumb {
    margin-bottom: 18px;
    font-size: 14px;
}

.cgk-breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
}

.cgk-breadcrumb-item {
    color: #6b7280;
}

.cgk-breadcrumb-item a {
    color: #2563eb;
    text-decoration: none;
}

.cgk-breadcrumb-item a:hover {
    text-decoration: underline;
}

.cgk-breadcrumb-item::after {
    content: "›";
    margin: 0 6px;
    color: #9ca3af;
}

.cgk-breadcrumb-item:last-child::after {
    content: "";
}

.cgk-breadcrumb-item.cgk-current {
    color: #111827;
    font-weight: 500;
}

/* Category Page */
.cgk-category-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 20px;
}

.cgk-category-header {
    margin-bottom: 20px;
}

.cgk-category-title {
    font-size: 26px;
    text-align: center;
    color: #333;
    margin: 0 0 20px 0;
}

.cgk-category-description {
    font-size: 20px;
    color: #666;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
}

/* Search */
.cgk-category-search {
    margin-bottom: 20px;
}

.cgk-search-box {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

#cgk-global-search, #cgk-category-search-input {
    width: 100%;
    padding: 18px 50px 18px 25px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s;
}

#cgk-global-search:focus, #cgk-category-search-input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 4px rgba(0,115,170,0.1);
}

#cgk-search-clear {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
}

#cgk-search-clear:hover {
    color: #dc3545;
}

#cgk-search-results-count {
    text-align: center;
    margin-top: 15px;
    font-size: 18px;
    color: #666;
}

/* Cloud Tags */
.cgk-quiz-cloud, .cgk-category-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
    padding: 20px 0;
}

.cgk-cloud-tag, .cgk-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 14px;
    line-height: 1.4;
    background: #f1f1f1;
    color: #333;
    border-radius: 18px;
    text-decoration: none;
    border: 1px solid #ddd;
    white-space: nowrap;
}

.cgk-cloud-tag:hover, .cgk-tag:hover {
    background: #0073aa;
    color: #fff;
}

.cgk-no-gks {
    width: 100%;
    text-align: center;
    font-size: 18px;
    padding: 60px 0;
}

/* Load More */
.cgk-load-more {
    text-align: center;
    margin: 50px 0;
}

#cgk-load-more, #cgk-load-more-categories {
    padding: 16px 50px;
    font-size: 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

#cgk-load-more:hover, #cgk-load-more-categories:hover {
    background: #005a87;
    transform: translateY(-3px);
}