@media (max-width: 1200px) {
    .featured-quiz-card.overlay-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 0 18px 18px;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .featured-quiz-content-overlay {
        padding-left: 4vw;
        padding-right: 4vw;
        box-sizing: border-box;
    }
    html, body {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box;
    }
}
html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body,
html {
    background: linear-gradient(120deg, #e9ecef 0%, #f7fafd 100%);
    min-height: 100vh;
    box-sizing: border-box;
    background-color: #f7fafd
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column
}

.topbar {
    background-color: #2c2c52;
    padding: 0 20px;
    height: 60px;
    line-height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky
}

.topbar.shrink {
    height: 40px;
    line-height: 40px
}

.top-left a {
    color: #fff;
    font-size: 30px;
    text-decoration: none;
    transition: font-size 0.3s ease
}

.topbar.shrink .top-left a {
    font-size: 22px
}

.top-right {
    list-style: none;
    display: flex;
    gap: 20px
}

.top-right a {
    color: #fff;
    font-size: 20px;
    text-decoration: none
}

.quiz-intro {
    max-width: 800px;
    margin: 40px auto 32px auto;
    text-align: center;
    background: linear-gradient(90deg, #f8fafc 0%, #e3e9f7 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(44, 62, 80, 0.07);
    padding: 36px 24px 32px 24px;
    border: 1.5px solid #e0e6f0
}

.quiz-intro-content,
.quiz-into-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto
}

.quiz-intro h2 {
    margin-top: 38px;
    font-size: 1.5em;
    color: #2a3a5a;
    font-weight: 700;
    letter-spacing: -0.5px
}

.quiz-intro p {
    font-size: 1.18em;
    color: #3a3a3a;
    margin: 18px 0 0 0;
    line-height: 1.6
}

.quiz-intro a {
    color: #1a73e8;
    text-decoration: underline;
    transition: color 0.2s
}

.quiz-intro a:hover {
    color: #0056b3
}

.Page {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1
}

.MenuCard {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin: 10px;
    width: 340px;
    min-width: 320px;
    max-width: 44vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transition: box-shadow 0.2s;
    border: 1px solid #e0e0e0
}

.MenuCard:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16)
}

.MenuImg {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: 1px solid #eee
}

.MenuCardInfo {
    padding: 12px 12px 10px 12px;
    width: 100%;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    box-sizing: border-box;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end
}

.MenuCardInfo h3 {
    margin: 0 0 6px 0;
    font-size: 1.08em;
    color: #2a2a2a;
    font-weight: 600
}

.MenuCardInfo p {
    margin: 0;
    font-size: 0.98em;
    color: #444;
    font-weight: 400
}

@media (max-width:640px) {
    .Page {
        flex-direction: column
    }

    .MenuBoxes {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px
    }

    .MenuBoxes>div {
        font-size: 1em;
        height: 200px;
        padding: 15px
    }
}

@media (min-width:641px) and (max-width:1024px) {
    .MenuBoxes {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px
    }
}

@media (min-width:1025px) {
    .MenuBoxes {
        grid-template-columns: repeat(3, 1fr)
    }
}

.bottombar a {
    color: #2a2a4a;
    text-decoration: none;
    font-size: 1rem;
    padding: 0 8px;
    transition: color 0.2s
}

.bottombar a:hover {
    color: #3b82f6
}

@media (max-width:700px) {
    .bottombar {
        font-size: 0.95rem;
        gap: 10px;
        min-height: 38px
    }

    .bottombar a {
        font-size: 0.95rem;
        padding: 0 4px
    }
}

.MenuBoxes {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    margin: 0 auto;
    max-width: 900px
}

.category-cards-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px
}

.category-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 8px;
    align-items: stretch
}

.category-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    width: 370px;
    min-width: 320px;
    max-width: 370px;
    height: 370px;
    margin: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s, border 0.2s;
    text-decoration: none;
    color: inherit
}

.category-card:hover {
    box-shadow: 0 0 0 4px rgba(25, 2, 46, 0.1), 0 4px 24px rgba(1, 2, 49, 0.16);
    text-decoration: none
}

.category-card-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-bottom: 1px solid #eee
}

.category-card-content {
    padding: 24px 20px 18px 20px;
    width: 100%;
    background: #f9f9f9;
    box-sizing: border-box;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end
}

.category-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.22em;
    color: #1a2233;
    font-weight: 700
}

.category-card-content p {
    margin: 0 0 18px 0;
    font-size: 1.05em;
    color: #3a4666;
    font-weight: 400;
    line-height: 1.5
}

.category-card .quiz-card-btn {
    background: #ffd700;
    color: #1a2233;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
    align-self: flex-start
}

.category-card .quiz-card-btn:hover {
    background: #ffb800;
    color: #fff
}

@media (max-width:1200px) {
    .category-cards-row {
        gap: 18px;
        max-width: 100vw;
        width: 100vw;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
        justify-content: center;
        align-items: center
    }

    .category-card {
        width: 320px;
        max-width: 320px;
        height: 340px
    }
}

@media (max-width:900px) {
    .category-cards-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        max-width: 100vw;
        width: 100vw;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box
    }

    .category-card {
        width: 99vw;
        max-width: 99vw;
        margin-left: auto;
        margin-right: auto;
        height: auto
    }

    .category-card-img {
        height: 140px
    }
}

.bottombar p {
    color: #fff;
    margin: 0 18px 0 0;
    font-weight: 400;
    letter-spacing: 0.5px
}

.bottombar a {
    color: #3d3c36;
    text-decoration: none;
    font-size: 1.08rem;
    font-weight: 700;
    padding: 0 10px;
    transition: color 0.2s
}

.bottombar a:hover {
    color: #fff
}

@media (max-width:700px) {
    .bottombar {
        font-size: 0.98rem;
        gap: 10px;
        min-height: 38px;
        flex-direction: column;
        padding: 10px 2px
    }

    .bottombar a {
        font-size: 0.98rem;
        padding: 0 4px
    }

    .bottombar p {
        margin: 0 0 4px 0;
        text-align: center
    }
}

.MenuBoxes {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    margin: 0 auto;
    max-width: 900px
}

.category-cards-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px
}

.category-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 8px;
    align-items: stretch
}

.category-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    width: 370px;
    min-width: 320px;
    max-width: 370px;
    height: 370px;
    margin: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s, border 0.2s;
    text-decoration: none;
    color: inherit
}

.category-card:hover {
    box-shadow: 0 0 0 4px rgba(25, 2, 46, 0.1), 0 4px 24px rgba(1, 2, 49, 0.16);
    text-decoration: none
}

.category-card-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-bottom: 1px solid #eee
}

.category-card-content {
    padding: 24px 20px 18px 20px;
    width: 100%;
    background: #f9f9f9;
    box-sizing: border-box;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end
}

.category-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.22em;
    color: #1a2233;
    font-weight: 700
}

.category-card-content p {
    margin: 0 0 18px 0;
    font-size: 1.05em;
    color: #3a4666;
    font-weight: 400;
    line-height: 1.5
}

.category-card .quiz-card-btn {
    background: #ffd700;
    color: #1a2233;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
    align-self: flex-start
}

.category-card .quiz-card-btn:hover {
    background: #ffb800;
    color: #fff
}

@media (max-width:1200px) {
    .category-cards-row {
        gap: 18px;
        max-width: 100vw;
        width: 100vw;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
        justify-content: center;
        align-items: center
    }

    .category-card {
        width: 320px;
        max-width: 320px;
        height: 340px
    }
}

@media (max-width:900px) {
    .category-cards-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        max-width: 100vw;
        width: 100vw;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box
    }

    .category-card {
        width: 99vw;
        max-width: 99vw;
        margin-left: auto;
        margin-right: auto;
        height: auto
    }

    .category-card-img {
        height: 140px
    }
}

.bottombar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    margin: 0;
    padding: 0 0 0 0;
    background: rgba(44, 44, 82, 0.90);
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 1000;
    border-radius: 0;
    min-height: 54px
}

.bottombar p {
    color: #fff;
    margin: 0 18px 0 0;
    font-weight: 400;
    letter-spacing: 0.5px
}

.bottombar a {
    color: #ffd700;
    text-decoration: none;
    font-size: 1.08rem;
    font-weight: 700;
    padding: 0 10px;
    transition: color 0.2s
}

.bottombar a:hover {
    color: #fff
}

@media (max-width:700px) {
    .bottombar {
        font-size: 0.98rem;
        gap: 10px;
        min-height: 38px;
        flex-direction: column;
        padding: 10px 2px
    }

    .bottombar a {
        font-size: 0.98rem;
        padding: 0 4px
    }

    .bottombar p {
        margin: 0 0 4px 0;
        text-align: center
    }
}

.MenuBoxes {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    margin: 0 auto;
    max-width: 900px
}

.category-cards-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px
}

.category-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 8px;
    align-items: stretch
}

.category-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    width: 370px;
    min-width: 320px;
    max-width: 370px;
    height: 370px;
    margin: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s, border 0.2s;
    text-decoration: none;
    color: inherit
}

.category-card:hover {
    box-shadow: 0 0 0 4px rgba(25, 2, 46, 0.1), 0 4px 24px rgba(1, 2, 49, 0.16);
    text-decoration: none
}

.category-card-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-bottom: 1px solid #eee
}

.category-card-content {
    padding: 24px 20px 18px 20px;
    width: 100%;
    background: #f9f9f9;
    box-sizing: border-box;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end
}

.category-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.22em;
    color: #1a2233;
    font-weight: 700
}

.category-card-content p {
    margin: 0 0 18px 0;
    font-size: 1.05em;
    color: #3a4666;
    font-weight: 400;
    line-height: 1.5
}

.category-card .quiz-card-btn {
    background: #ffd700;
    color: #1a2233;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
    align-self: flex-start
}

.category-card .quiz-card-btn:hover {
    background: #ffb800;
    color: #fff
}

@media (max-width:1200px) {
    .category-cards-row {
        gap: 18px;
        max-width: 100vw;
        width: 100vw;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
        justify-content: center;
        align-items: center
    }

    .category-card {
        width: 320px;
        max-width: 320px;
        height: 340px
    }
}

@media (max-width:900px) {
    .category-cards-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        max-width: 100vw;
        width: 100vw;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box
    }

    .category-card {
        width: 99vw;
        max-width: 99vw;
        margin-left: auto;
        margin-right: auto;
        height: auto
    }

    .category-card-img {
        height: 140px
    }
}

@media (max-width:700px) {
    .quiz-intro {
        padding: 20px 6px 16px 6px;
        min-height: 80px;
        margin: 18px auto 12px auto
    }

    .quiz-intro h2 {
        font-size: 1.3rem
    }

    .quiz-intro p {
        font-size: 1rem
    }
}

.portal-hero-card,
.portal-card,
.bottombar.portal-bottombar,
.topbar.portal-topbar,
.result-box-alt {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 24px rgba(60, 60, 120, 0.07)
}

.portal-bg-anim {
    background: linear-gradient(120deg, #b2bec3, #dfe6e9, #a5b1c2, #f7fafd);
    background-size: 400% 400%;
    animation: portalGradientMove 16s ease-in-out infinite;
    opacity: 0.5;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0
}

@keyframes portalGradientMove {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.result-box-alt {
    background: rgba(255, 251, 231, 0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 32px rgba(255, 193, 7, 0.13)
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

.Page,
.QuizContainer {
    background: transparent
}

.SidePanel,
.SidePanelContent {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px)
}

.Page.scrollable-homepage,
.category-cards-layout {
    padding-bottom: 90px !important
}

@media (max-width:700px) {

    .Page.scrollable-homepage,
    .category-cards-layout {
        padding-bottom: 110px !important
    }
}

.homepage-intro {
    max-width: 800px;
    margin: 32px auto 0 auto;
    text-align: center
}

.homepage-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 0.5em;
    color: #2a3a5a;
    letter-spacing: -1px
}

.homepage-desc {
    font-size: 1.15em;
    margin: 16px 0 0 0
}

.homepage-categories-heading {
    margin-top: 32px
}

.addthis_inline_share_toolbox {
    margin: 18px auto 0 auto;
    display: flex;
    justify-content: center
}

body.modern-bg {
    background: #f6f8fa;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    margin: 0;
    color: #1a2233;
    padding: 0
}

.modern-header {
    background: #1a2233;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 64px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin: 0;
    border: none
}

.header-logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    text-decoration: none
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px
}

.category-dropdown {
    background: #232b3e;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 1rem;
    margin-right: 8px
}

.header-link {
    color: #ffd700;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: 0.5px;
    transition: color 0.2s
}

.header-link:hover {
    color: #fff
}

.main-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 32px 16px 0 16px
}

.hero-featured {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap
}

.featured-quizzes {
    display: flex;
    flex-direction: row;
    gap: 32px;
    flex: 2;
    min-width: 400px
}

.featured-quiz-card {
    position: relative;
    width: 340px;
    height: 220px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(30, 40, 60, 0.10);
    background: #fff;
    display: flex;
    align-items: flex-end;
    transition: transform 0.2s, box-shadow 0.2s
}

.featured-quiz-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 32px rgba(30, 40, 60, 0.16)
}

.featured-quiz-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1
}

.featured-quiz-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(26, 34, 51, 0.7) 60%, rgba(26, 34, 51, 0.2) 100%);
    z-index: 2
}

.featured-quiz-content {
    position: relative;
    z-index: 3;
    color: #fff;
    padding: 32px 24px 24px 24px
}

.featured-quiz-content h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 700
}

.featured-quiz-content p {
    margin: 0 0 16px 0;
    font-size: 1rem;
    font-weight: 400
}

.featured-quiz-btn {
    margin-top: 8px;
    align-self: flex-start;
    background: #ffd700;
    color: #1a2233;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08)
}

.featured-quiz-btn:hover {
    background: #ffb800;
    color: #fff
}

 .new-quizzes-sidebar {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(30, 40, 60, 0.10);
    padding: 24px 20px;
    min-width: 270px;
    max-width: 320px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: fit-content;
    transition: max-width 0.3s, width 0.3s;
}

@media (max-width: 1200px) {
    .new-quizzes-sidebar {
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }
}

.new-quizzes-sidebar h3 {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a2233
}

.new-quiz-list {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.new-quiz-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f6f8fa;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.2s
}

.new-quiz-card:hover {
    background: #e9eef5 !important;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.10)
}

.new-quiz-card img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover
}

.new-quiz-card h4 {
    margin: 0 0 2px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a2233
}

.new-quiz-card p {
    margin: 0;
    font-size: 0.92rem;
    color: #3a4666
}

.see-all-btn {
    display: inline-block;
    margin-top: 8px;
    background: #1a2233;
    color: #fff;
    border-radius: 8px;
    padding: 8px 18px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: background 0.2s
}

.see-all-btn:hover {
    background: #232b3e
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 32px 0 24px 0;
    color: #1a2233;
    letter-spacing: 0.5px;
    text-align: left
}

.quizzes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px 36px;
    margin-bottom: 64px;
    justify-items: center;
    align-items: stretch
}

.quiz-card {
    max-width: 370px;
    min-width: 290px;
    min-height: 340px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 32px rgba(30, 40, 60, 0.10);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    border: 1.5px solid #e0e6f0
}

.quiz-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 20px 20px 0 0
}

.quiz-card-content {
    padding: 28px 22px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #f9fafd
}

.quiz-card-content h3 {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a2233
}

.quiz-card-content p {
    margin: 0 0 18px 0;
    font-size: 1.05rem;
    color: #3a4666;
    flex: 1
}

.quiz-card-btn {
    background: #ffd700;
    color: #1a2233;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.2s;
    margin-top: 8px
}

.quiz-card-btn:hover {
    background: #ffb800
}

@media (max-width:1100px) {
    .quizzes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 16px
    }
}

@media (max-width:700px) {
    .quizzes-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-left: 4vw;
        padding-right: 4vw;
        box-sizing: border-box;
    }

    .quiz-card {
        min-width: 0;
        max-width: 99vw;
        min-height: 260px;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }

    .quiz-card img {
        height: 120px
    }

    .quiz-card-content {
        padding: 16px 10px 14px 10px
    }

    .main-content,
    .new-quizzes-sidebar,
    .featured-quiz-card.overlay-card {
        margin-left: 4vw !important;
        margin-right: 4vw !important;
        width: auto !important;
        max-width: calc(100vw - 8vw) !important;
        box-sizing: border-box;
    }
}

.section-title {
    margin-top: 56px;
    margin-bottom: 36px;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #1a2233;
    text-align: left
}

@media (max-width:1200px) {
    .main-content {
        flex-direction: column;
        padding: 0 16px
    }

    .hero-featured {
        flex-direction: column;
        gap: 32px
    }

    .featured-quizzes {
        flex-direction: row;
        gap: 16px;
        width: 100%
    }

    .new-quizzes-sidebar {
        width: 100%;
        margin-left: 0;
        margin-top: 24px
    }
}

@media (max-width:900px) {
    .main-content {
        padding: 0 8px
    }

    .quizzes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px
    }

    .featured-quizzes {
        flex-direction: column;
        gap: 18px
    }

    .featured-quiz-card {
        min-width: 0;
        width: 100%;
        max-width: 100%
    }

    .homepage-info-block {
        padding: 24px 8px 18px 8px;
        margin: 28px 4px 18px 4px;
        font-size: 1em
    }
}

@media (max-width:600px) {
    .modern-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 8px;
        gap: 8px
    }

    .header-left,
    .header-right {
        width: 100%;
        justify-content: flex-start
    }

    .header-logo {
        font-size: 1.3em
    }

    .category-dropdown {
        width: 100%;
        margin-bottom: 8px
    }

    .main-content {
        padding: 0 2px
    }

    .hero-featured {
        flex-direction: column;
        gap: 16px
    }

    .featured-quizzes {
        flex-direction: column;
        gap: 12px
    }

    .featured-quiz-card {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        height: 180px
    }

    .featured-quiz-img {
        height: 100%;
        object-fit: cover
    }

    .new-quizzes-sidebar {
        width: 100%;
        margin-left: 0;
        margin-top: 12px;
        padding: 12px 0
    }

    .quizzes-grid {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .quiz-card {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        padding: 10px 6px 16px 6px
    }

    .quiz-card img {
        height: 80px;
        width: 80px;
        object-fit: cover
    }

    .quiz-card-content h3 {
        font-size: 1.1em
    }

    .quiz-card-content p {
        font-size: 0.98em
    }

    .homepage-info-block {
        padding: 10px 2px 8px 2px;
        font-size: 0.98em;
        border-radius: 10px;
        margin: 12px 2px 8px 2px
    }

    .section-title {
        font-size: 1.2em;
        margin: 18px 0 10px 0
    }

    .bottombar {
        flex-direction: column;
        gap: 6px;
        font-size: 0.98em;
        padding: 10px 2px
    }
}

.homepage-info-block {
    max-width: 900px;
    margin: 48px auto 32px auto;
    text-align: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(44, 62, 80, 0.07);
    padding: 36px 24px 32px 24px;
    border: 1.5px solid #e0e6f0
}

@media (max-width:900px) {
    .homepage-info-block {
        padding: 24px 8px 18px 8px;
        margin: 28px 4px 18px 4px;
        font-size: 1em
    }
}

@media (max-width:600px) {
    .homepage-info-block {
        padding: 10px 2px 8px 2px;
        font-size: 0.98em;
        border-radius: 10px;
        margin: 12px 2px 8px 2px
    }
}

@media (max-width:600px) {
    .quiz-card img {
        height: 100px;
        min-height: 60px;
        max-height: 120px;
        width: 100%;
        object-fit: cover;
        border-radius: 10px 10px 0 0
    }
}

@media (max-width:600px) {
    .header-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        width: 100%
    }

    .category-dropdown {
        width: 100%;
        margin-bottom: 6px;
        font-size: 1em
    }
}

@media (max-width:400px) {
    .quizzes-grid {
        gap: 8px;
        padding: 0 2px
    }

    .quiz-card {
        padding: 2px 0 8px 0
    }
}

@media (max-width:400px) {
    .main-content {
        padding: 0 1px
    }
}

@media (max-width:400px) {
    .section-title {
        font-size: 1em;
        margin: 10px 0 6px 0
    }
}

@media (max-width:400px) {
    .bottombar {
        font-size: 0.92em;
        gap: 2px;
        padding: 4px 1px
    }
}

.featured-quiz-card {
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    position: relative
}

.featured-quiz-card:hover {
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.18), 0 4px 24px rgba(44, 62, 80, 0.10);
    transform: translateY(-4px) scale(1.03)
}

.featured-quiz-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%
}

.featured-quiz-btn {
    margin-top: 8px;
    align-self: flex-start;
    background: #ffd700;
    color: #1a2233;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08)
}

.featured-quiz-btn:hover {
    background: #ffb800;
    color: #fff
}

.featured-quiz-card.stretched {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-width: 320px;
    max-width: 100%;
    height: 370px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.10);
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    position: relative
}

.featured-quiz-img-stretched {
    width: 44%;
    min-width: 160px;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px
}

.featured-quiz-content-stretched {
    background: #0d223a;
    color: #fff;
    padding: 36px 28px 32px 28px;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0
}

.featured-quiz-content-stretched h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 10px 0
}

.featured-quiz-content-stretched p {
    font-size: 1.08rem;
    margin: 0 0 10px 0;
    color: #e0e6f0
}

.featured-quiz-btn {
    margin-top: 8px;
    align-self: flex-start;
    background: #ffd700;
    color: #1a2233;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block
}

.featured-quiz-card.stretched:hover {
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.16);
    transform: translateY(-2px) scale(1.02)
}

.featured-quiz-card.stretched:hover .featured-quiz-img-stretched {
    transform: scale(1.04)
}

@media (max-width:900px) {
    .featured-quizzes {
        flex-direction: column !important;
        gap: 24px !important
    }

    .featured-quiz-card.stretched {
        flex-direction: column;
        height: auto;
        min-width: 0
    }

    .featured-quiz-img-stretched {
        width: 100%;
        height: 180px;
        border-radius: 0;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        border-bottom-left-radius: 0
    }

    .featured-quiz-content-stretched {
        padding: 28px 18px 24px 18px
    }
}

.featured-quiz-card.overlay-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 320px;
    max-width: 100%;
    height: 220px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.10);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s
}

.featured-quiz-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 30, 50, 0.38) 40%, rgba(20, 30, 50, 0.82) 100%);
    z-index: 1
}

.featured-quiz-content-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    padding: 24px 24px 20px 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%
}

.featured-quiz-content-overlay h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18)
}

.featured-quiz-content-overlay p {
    font-size: 1.05rem;
    margin: 0 0 14px 0;
    color: #e0e6f0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18)
}

.featured-quiz-btn.overlay-btn {
    background: #ffd700;
    color: #1a2233;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.10)
}

.featured-quiz-card.overlay-card:hover {
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.16);
    transform: translateY(-2px) scale(1.02)
}

@media (max-width:900px) {
    .featured-quizzes {
        flex-direction: column !important;
        gap: 24px !important
    }

    .featured-quiz-card.overlay-card {
        height: 180px;
        min-width: 0
    }

    .featured-quiz-content-overlay {
        padding: 16px 14px 14px 14px
    }
}

@media (max-width:700px) {
    .modern-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 8px 6px;
        height: 48px;
        gap: 0
    }

    .header-left,
    .header-right {
        flex: unset;
        min-width: unset;
        width: auto;
        gap: 10px
    }

    .header-logo span {
        font-size: 1.1rem !important;
        font-weight: 700;
        letter-spacing: 0.5px
    }

    .header-link {
        font-size: 1rem;
        padding-left: 8px
    }
}

.quiz-card:hover,
.category-card:hover {
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.18), 0 4px 24px rgba(44, 62, 80, 0.10);
    transform: translateY(-4px) scale(1.03);
    transition: box-shadow 0.2s, transform 0.2s;
    z-index: 2
}

.quiz-card,
.category-card {
    transition: box-shadow 0.2s, transform 0.2s
}