body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fc;
    color: #333;
}
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}
.page-title {
    font-size: 2.2rem;
    font-weight: bold;
    text-align: left;
    color: #111;
    margin-bottom: 30px;
}
.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    gap: 10px;
    flex-wrap: wrap;
}
.filters .search {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
}
.filters input {
    flex-grow: 1;
    padding: 14px;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
}
.filters button {
    padding: 12px 18px;
    font-size: 1rem;
    border-radius: 10px;
    border: none;
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filters button:hover {
    background-color: rgba(0, 0, 0, 0.15);
}
.filter-selects {
    display: flex;
    gap: 10px;
}
.filters select {
    padding: 12px;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    flex-grow: 1;
}
.question-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    list-style: none;
    padding: 0;
}
.question-item {
    padding: 15px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
    min-height: 160px;
    flex-direction: column;
    justify-content: space-between;
    display: flex;
}
.question-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.question-item h2 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
    line-height: 1.5em;
}
.question-topic {
    font-size: 0.9rem;
    background-color: #e3e8f0;
    border-radius: 15px;
    color: #333;
    padding: 5px 10px;
    white-space: nowrap;
    max-width: fit-content;
}
.question-topic.hr {
    background-color: rgba(255, 102, 102, 0.3);
}
.question-topic.tech {
    background-color: rgba(76, 153, 255, 0.3);
}
.question-topic.system-design {
    background-color: rgba(255, 204, 0, 0.3);
}
.question-link {
    text-decoration: none;
    color: #222;
    font-weight: normal;
    transition: 0.3s;
}
.question-link:hover {
    color: #444;
}
.pagination {
     display: flex;
     justify-content: center;
     margin-top: 40px;
     flex-wrap: wrap;
     gap: 5px;
 }
.pagination a {
    padding: 10px 15px;
    margin: 5px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}
.pagination a:hover {
    background-color: #333;
    color: #fff;
}
.pagination .active {
    display: inline-block;
    padding: 10px 15px;
    background-color: #333;
    border-radius: 4px;
    color: #fff;
    border-color: #333;
    text-align: center;
}
.total-records {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 20px;
}
.progress-container {
    width: 100%;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    text-align: center;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: #4caf50;
    transition: width 0.5s ease-in-out;
}
.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #fff;
}
.progress-container[data-authenticated="false"] .progress-bar {
    background: #ccc !important;
}
.progress-container[data-authenticated="false"] .progress-text {
    color: #777 !important;
}
.access-banner {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
    text-align: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    overflow-wrap: break-word;
}
.access-text {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}
.access-subtext {
    font-size: 16px;
    color: #444;
    margin-bottom: 20px;
}
.access-button {
    display: inline-block;
    background: #ffa500;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}
.access-button:hover {
    background: #ff8700;
}
.studied {
    background-color: rgba(220, 220, 220, 0.6) !important;
    color: rgba(119, 119, 119, 0.8) !important;
    pointer-events: auto;
    transition: all 0.3s ease-in-out;
}
.studied h2,
.studied p {
    color: rgba(102, 102, 102, 0.9) !important;
}
.studied:hover {
    background-color: rgba(200, 200, 200, 0.8) !important;
}

@media (max-width: 1024px) {
    .container {
        padding: 20px;
    }
    .filters {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .filters .search {
        width: 100%;
    }
    .filter-selects {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.8rem;
    }
    .question-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .pagination {
        gap: 3px;
        flex-wrap: wrap;
    }
    .pagination a, .pagination span {
        padding: 8px 12px;
        font-size: 14px;
    }
    .filters input, .filters select, .filters button {
        font-size: 0.9rem;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .question-list {
        grid-template-columns: 1fr;
    }
    .filters {
        gap: 10px;
    }
    .filters input, .filters select, .filters button {
        font-size: 0.85rem;
        padding: 8px;
    }
    .page-title {
        font-size: 1.5rem;
    }
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    .pagination a, .pagination span {
        padding: 6px 10px;
        font-size: 12px;
    }

}