/* Mirrors index.php "Practice Tests — Gaming Mode" section (.home-practice-tests-block). */
.home-practice-tests-block {
    position: relative;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background: #f7f2ea;
    overflow-x: hidden;
    box-sizing: border-box;
}
.home-practice-tests-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/practice-bg.png") center center / min(920px, 96vw) auto no-repeat;
    opacity: 0.06;
    pointer-events: none;
}
.home-practice-tests-block *,
.home-practice-tests-block *::before,
.home-practice-tests-block *::after {
    box-sizing: border-box;
}
.home-practice-tests-block .hptu-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 0;
    padding: 20px clamp(16px, 4vw, 32px) 12px;
    padding-right: clamp(16px, 4vw, min(280px, 28vw));
    max-width: 1240px;
    margin: 0 auto;
}
/* Gaming header stack — see home-practice-tests-title.css (loaded on this page) */
.home-practice-tests-block .hptu-student {
    position: absolute;
    top: 72px;
    right: clamp(8px, 3vw, 48px);
    width: min(270px, 34vw);
    z-index: 2;
    pointer-events: none;
}
.home-practice-tests-block .hptu-student img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(320px, 52vw);
    object-fit: contain;
    object-position: center;
}
.home-practice-tests-block .hptu-exam-grid {
    margin-top: clamp(40px, 5vw, 80px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px clamp(32px, 6vw, 72px);
    padding: 0 clamp(4px, 3vw, 48px);
}
.home-practice-tests-block .hptu-exam-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(20px, 4vw, 40px);
    min-width: 0;
}
.home-practice-tests-block .hptu-exam-content {
    min-width: 0;
    flex: 1 1 auto;
}
.home-practice-tests-block .hptu-exam-content h2 {
    font-size: clamp(1.05rem, 2.3vw, 1.625rem);
    line-height: 1.25;
    font-weight: 800;
    color: #000;
    margin: 0;
}
.home-practice-tests-block .hptu-exam-content p {
    margin-top: 10px;
    font-size: clamp(0.9rem, 1.75vw, 1.0625rem);
    line-height: 1.45;
    color: #111;
    font-weight: 500;
}
.home-practice-tests-block .hptu-exam-content p .hptu-red {
    color: #ff2929;
    font-weight: 700;
}
.home-practice-tests-block a.hptu-start-btn {
    min-width: 128px;
    height: 48px;
    background: #08bf5b;
    color: #001b00 !important;
    font-weight: 800;
    border: none;
    cursor: pointer;
    font-size: clamp(0.9rem, 1.55vw, 1.05rem);
    clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%, 15% 50%);
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    flex-shrink: 0;
    padding: 0 10px;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(8, 191, 91, 0.35);
}
.home-practice-tests-block a.hptu-start-btn:hover {
    transform: translateY(-3px);
    color: #001b00 !important;
}
.home-practice-tests-block .hptu-footer {
    margin-top: 36px;
    text-align: center;
    font-size: clamp(0.95rem, 1.9vw, 1.125rem);
    font-weight: 600;
    color: #111;
}
.home-practice-tests-block .hptu-footer .hptu-red {
    color: #ff2e2e;
    font-weight: 700;
}
.home-practice-tests-block .hptu-exam-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5rem 1.25rem;
    font-size: 1.05rem;
    color: #444;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    border: 1px dashed rgba(0, 0, 0, 0.12);
}
@media (max-width: 1100px) {
    .home-practice-tests-block .hptu-inner {
        padding-right: clamp(16px, 4vw, 32px);
    }
    .home-practice-tests-block .hptu-student {
        position: static;
        margin: 16px auto 28px;
        width: min(272px, 88%);
        pointer-events: none;
    }
    .home-practice-tests-block .hptu-exam-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 991.98px) {
    .home-practice-tests-block .hptu-inner {
        padding-left: clamp(12px, 3.5vw, 24px);
        padding-right: clamp(12px, 3.5vw, 24px);
    }
    .home-practice-tests-block .hptu-exam-grid {
        padding-left: 0;
        padding-right: 0;
    }
}
@media (max-width: 768px) {
    .home-practice-tests-block .hptu-exam-content h2 {
        font-size: 1.35rem;
    }
    .home-practice-tests-block .hptu-exam-card {
        flex-direction: column;
    }
    .home-practice-tests-block a.hptu-start-btn {
        width: 150px;
    }
}
@media (max-width: 575.98px) {
    .home-practice-tests-block .hptu-inner {
        padding-top: 14px;
        padding-bottom: 8px;
    }
    .home-practice-tests-block .hptu-exam-card {
        align-items: center;
        text-align: center;
    }
    .home-practice-tests-block .hptu-exam-content {
        text-align: left;
        width: 100%;
    }
    .home-practice-tests-block a.hptu-start-btn {
        width: 100%;
        max-width: 240px;
    }
}
