/* =========================
   MATERIAL TESTING PAGE
========================= */

body {
    background: #f4f7fb;
    overflow-x: hidden;
}

/* MAIN PAGE */
.material-page {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* MAIN SECTION */
.material-section {
    width: 100%;
    max-width: 1600px;

    margin: auto;

    background: #eef3fb;

    border-radius: 18px;

    padding: 30px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.08);

    box-sizing: border-box;
}

/* =========================
   HEADER
========================= */

.headerRow {
    display: flex;
    align-items: center;
    gap: 25px;

    margin-bottom: 25px;
}

.headerRow img {
    width: 100px;
    height: auto;
}

/* TEXT */
.headerText {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.headerText h1 {
    font-size: 42px;
    font-weight: 700;

    color: #1e293b;

    margin: 0 0 10px 0;
}

.material-subtitle {
    font-size: 18px;
    color: #475569;

    margin: 0;
}

/* =========================
   PDF CARD
========================= */

.pdf-card {
    width: 100%;

    margin-top: 20px;

    background: #fff;

    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 6px 20px rgba(0,0,0,0.08);

    border: 1px solid #dbe3ee;
}

/* TOP BAR */
.pdf-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 24px;

    background: linear-gradient(
        to right,
        #1e3a8a,
        #2563eb
    );

    color: #fff;

    font-size: 22px;
    font-weight: 700;
}

/* LEFT LABEL */
.pdf-topbar span {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* BUTTON */
.open-btn {
    background: #fff;

    color: #1e40af;

    padding: 12px 22px;

    border-radius: 30px;

    text-decoration: none;

    font-size: 15px;
    font-weight: 700;

    transition: 0.2s ease;
}

.open-btn:hover {
    transform: translateY(-2px);

    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* =========================
   PDF VIEWER
========================= */

.pdf-wrapper {
    width: 100%;

    height: 90vh;

    background: #f8fafc;
}

/* IFRAME */
.pdf-wrapper iframe {
    width: 100%;
    height: 100%;

    border: none;
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: #b7c2d1;
    border-radius: 20px;
}

::-webkit-scrollbar-track {
    background: #eef3fb;
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 768px) {

    .material-page {
        padding: 10px;
    }

    .material-section {
        padding: 18px;
        border-radius: 14px;
    }

    /* HEADER STACK */
    .headerRow {
        flex-direction: column;
        text-align: center;

        gap: 15px;
    }

    .headerRow img {
        width: 85px;
    }

    .headerText h1 {
        font-size: 30px;
    }

    .material-subtitle {
        font-size: 15px;
    }

    /* PDF TOPBAR */
    .pdf-topbar {
        flex-direction: column;

        gap: 12px;

        text-align: center;

        font-size: 18px;
    }

    /* BUTTON */
    .open-btn {
        width: 100%;
        text-align: center;
    }

    /* PDF HEIGHT */
    .pdf-wrapper {
        height: 75vh;
    }
}

/* =========================
   SMALL LAPTOPS
========================= */

@media (min-width: 769px) and (max-width: 1366px) {

    .headerText h1 {
        font-size: 36px;
    }

    .pdf-wrapper {
        height: 85vh;
    }
}