/* PTE practice material hub (/pte-practice-material) */

.ppm-page {
    --ppm-blue: #0d56f9;
    --ppm-ink: #212121;
    --ppm-muted: #555c68;
    --ppm-line: #e3eaf5;
    --ppm-soft: #eef6ff;
}

.ppm-page .main-heading {
    margin-bottom: 0;
}

/* ---------- Hero ---------- */
.ppm-hero {
    background: linear-gradient(180deg, #f5faff 0%, #fff 100%);
    overflow: hidden;
}

.ppm-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 60px;
}

.ppm-hero-content {
    max-width: 640px;
}

.ppm-hero-content p {
    margin: 22px 0 36px;
    line-height: 190%;
    color: var(--ppm-ink);
}

.ppm-hero-content .comman-btn {
    position: relative;
    overflow: hidden;
}

.ppm-hero-visual {
    position: relative;
    flex: 0 0 470px;
    max-width: 470px;
    padding: 24px 0 24px 24px;
}

.ppm-toolkit {
    position: relative;
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(13, 40, 120, 0.12);
}

.ppm-toolkit-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #8a93a3;
    margin-bottom: 14px;
}

.ppm-toolkit ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ppm-toolkit li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--ppm-line);
    border-radius: 14px;
}

.ppm-toolkit li strong {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--ppm-ink);
}

.ppm-toolkit li em {
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    color: var(--c);
    background: var(--c-soft);
    border-radius: 50px;
    padding: 3px 10px;
    white-space: nowrap;
}

.ppm-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c);
    background: var(--c-soft);
}

.ppm-toolkit-badge {
    position: absolute;
    left: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ppm-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 18px;
    box-shadow: 0 12px 28px rgba(13, 86, 249, 0.35);
}

/* Colour per resource */
.ppm-page .is-blue { --c: #0d56f9; --c-soft: #eef4ff; }
.ppm-page .is-indigo { --c: #6a4cf5; --c-soft: #f0edff; }
.ppm-page .is-red { --c: #e5332a; --c-soft: #fdeeed; }
.ppm-page .is-orange { --c: #e07800; --c-soft: #fff3e3; }
.ppm-page .is-teal { --c: #0e9f8a; --c-soft: #e7f7f4; }
.ppm-page .is-green { --c: #189903; --c-soft: #ebf8e8; }

/* ---------- Practice widget ---------- */
/* Here the module tabs sit under a section heading instead of on the section edge */
.ppm-page .practice-pages-tab {
    position: relative;
    top: 0;
    padding: 0;
    margin-top: 40px;
}

/* Module headings are h3 here (under the section h2) */
.ppm-page .tab-content-new .main-heading {
    margin-bottom: 40px;
}

.ppm-page .tab-content-new .main-heading h3 {
    font-size: 28px;
    font-weight: 700;
    line-height: 150%;
    color: #212121;
    margin-bottom: 8px;
}

/* ---------- Study resources ---------- */
.ppm-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.ppm-resource {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--ppm-line);
    border-radius: 18px;
    padding: 28px 26px;
    transition: box-shadow 0.2s ease-out, transform 0.2s ease-out;
}

.ppm-resource:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(13, 40, 120, 0.1);
}

.ppm-resource .ppm-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 14px;
}

.ppm-resource h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ppm-ink);
    margin: 20px 0 10px;
}

.ppm-resource p {
    color: var(--ppm-muted);
    line-height: 175%;
    margin-bottom: 22px;
    flex: 1;
}

.ppm-resource p a {
    color: var(--ppm-blue);
    text-decoration: underline;
}

.ppm-resource-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    background: var(--ppm-soft);
    color: var(--ppm-blue);
    font-weight: 600;
    transition: 0.2s ease-out;
}

.ppm-resource-link:hover {
    background: var(--ppm-blue);
    color: #fff;
}

.ppm-resource-link svg {
    transition: transform 0.2s ease-out;
}

.ppm-resource-link:hover svg {
    transform: translateX(3px);
}

/* ---------- Mock test band ---------- */
.ppm-mock {
    display: flex;
    align-items: center;
    gap: 50px;
    background: linear-gradient(135deg, #eef4ff 0%, #f7faff 100%);
    border: 1px solid var(--ppm-line);
    border-radius: 24px;
    padding: 50px;
}

.ppm-mock-content {
    flex: 1;
}

.ppm-mock-content .main-heading,
.ppm-mock-content .main-heading h2 {
    text-align: left;
    justify-content: flex-start;
}

.ppm-mock-content p {
    line-height: 190%;
    color: var(--ppm-ink);
    margin: 18px 0 30px;
}

.ppm-mock-content .comman-btn {
    position: relative;
    overflow: hidden;
}

.ppm-mock-image {
    flex: 0 0 48%;
    max-width: 48%;
}

.ppm-mock-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(13, 40, 120, 0.12);
}

/* ---------- Why ---------- */
.ppm-why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.ppm-why-item {
    background: #fff;
    border-radius: 18px;
    padding: 28px 26px;
    box-shadow: 0 10px 34px rgba(13, 40, 120, 0.07);
}

.ppm-why-item h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--ppm-ink);
    margin: 20px 0 10px;
}

.ppm-why-item p {
    color: var(--ppm-muted);
    line-height: 175%;
}

.ppm-page .faq .faq-inner {
    margin-top: 40px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .ppm-hero-visual {
        flex-basis: 420px;
    }
    .ppm-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .ppm-hero-inner {
        flex-direction: column;
        align-items: stretch;
        row-gap: 30px;
    }
    .ppm-hero-visual {
        flex-basis: auto;
        max-width: 520px;
    }
    .ppm-resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ppm-mock {
        flex-direction: column;
        align-items: stretch;
        padding: 36px 30px;
        gap: 30px;
    }
    .ppm-mock-image {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .ppm-hero-visual {
        padding-left: 0;
    }
    .ppm-toolkit {
        padding: 18px;
    }
    .ppm-toolkit-badge {
        left: auto;
        right: 12px;
    }
    .ppm-resource-grid,
    .ppm-why-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .ppm-resource,
    .ppm-why-item {
        padding: 22px 20px;
    }
    .ppm-mock {
        padding: 28px 20px;
        border-radius: 18px;
    }
    .ppm-mock-content .comman-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .ppm-page .practice-pages-tab {
        margin-top: 28px;
    }
    .ppm-page .tab-content-new .main-heading h3 {
        font-size: 22px;
    }
}
