/* =========================
   GRADE VARIABLES
========================= */

.grade-7{
    --accent-color: #2563eb;
    --accent-color-dark: #1d4ed8;
    --accent-light: #dbeafe;
}

.grade-8{
    --accent-color: #7c3aed;
    --accent-color-dark: #6d28d9;
    --accent-light: #ede9fe;
}

.grade-9{
    --accent-color: #059669;
    --accent-color-dark: #047857;
    --accent-light: #d1fae5;
}

/* =========================
   GLOBAL
========================= */

body{
    font-family: 'Inter', sans-serif;
    background: #f1f5f9;
    color: #1e293b;
}

/* =========================
   WRAPPER
========================= */

.ktp-wrapper{
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* =========================
   HERO
========================= */

.ktp-hero{
    padding-top: 40px;
    padding-bottom: 30px;
}

.ktp-hero-content{
    background: linear-gradient(
        135deg,
        var(--accent-color),
        var(--accent-color-dark)
    );

    border-radius: 30px;
    padding: 50px;
    color: white;

    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}

/* =========================
   HERO TEXT
========================= */

.ktp-badge{
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.ktp-title{
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
}

.ktp-subtitle{
    font-size: 18px;
    opacity: 0.95;
}

/* =========================
   SECTION
========================= */

.ktp-section{
    padding-bottom: 60px;
}

/* =========================
   CARD
========================= */

.ktp-card{
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.ktp-card-header{
    padding: 30px;
    border-bottom: 1px solid #e2e8f0;

    border-left: 6px solid var(--accent-color);
}

.ktp-card-header h2{
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 6px;

    color: var(--accent-color);
}

.ktp-card-header p{
    color: #64748b;
    font-size: 15px;
}

/* =========================
   TABLE WRAPPER
========================= */

.ktp-table-wrapper{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* =========================
   TABLE
========================= */

.ktp-table{
    width: 100%;
    table-layout: fixed;
}

/* =========================
   ALL CELLS
========================= */

.ktp-table td{
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
    line-height: 1.5;
    font-size: 18px;
}

/* =========================
   FIRST ROW (HEADER)
========================= */

.ktp-table tr:first-child td{
    background: var(--accent-color-dark);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 5;
    text-align: center;
}

/* =========================
   COLUMN WIDTHS
========================= */

.ktp-table td:first-child{
    width: 90px;
    text-align: center;
    font-weight: 600;
}

.ktp-table td:last-child{
    width: 25%;
    text-align: center;
}

/* =========================
   TEXT COLUMN
========================= */

.ktp-table .text{
    min-width: 400px;
    text-align: justify;
}

/* =========================
   SECTION ROWS
========================= */

.ktp-table tr td[colspan="3"]{
    background: var(--accent-light);
    color: var(--accent-color-dark);
    font-weight: 700;
    font-size: 20px;
}

/* =========================
   HOVER
========================= */

.ktp-table tr{
    transition: 0.2s;
}

.ktp-table tr:hover{
    background: #f8fafc;
}

/* =========================
   LINKS
========================= */

.ktp-table a{
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.ktp-table a:hover{
    color: var(--accent-color-dark);
    text-decoration: underline;
}

/* =========================
   SCROLLBAR
========================= */

.ktp-table-wrapper::-webkit-scrollbar{
    height: 10px;
}

.ktp-table-wrapper::-webkit-scrollbar-track{
    background: #e2e8f0;
}

.ktp-table-wrapper::-webkit-scrollbar-thumb{
    background: #94a3b8;
    border-radius: 999px;
}

/* =====================================
   QUICK-NAV
===================================== */

.quick-nav{
   display:grid;
    grid-template-columns:repeat(2,minmax(280px,560px));
    gap:20px;
    justify-content:center;
     margin-top: 0;
}

.quick-nav-title{
    grid-column: 1 / -1;

    text-align:center;
    font-size:1.3rem;
    font-weight:700;
    margin:0 0 24px;
    color:var(--accent-color);
    position:relative;
}

.quick-nav-title::after{
    content:"";
    display:block;
    width:60px;
    height:3px;
    background:var(--accent-color);
    border-radius:3px;
    margin:10px auto 0;
}

.quick-card{
    display:block;
    padding:24px;
    background:#fff;
    border:2px solid var(--accent-light);
    border-radius:16px;
    text-decoration:none;
    color:inherit;
    transition:all .25s ease;
    position:relative;
    overflow:hidden;
}

.quick-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:4px;
    background:var(--accent-color);
}

.quick-card:hover{
    transform:translateY(-4px);
    border-color:var(--accent-color);
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.quick-card-icon{
    width:52px;
    height:52px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    border-radius:50%;
    background:var(--accent-light);
    flex-shrink:0;
}

.quick-card h3{
    margin:0 0 10px;
    color:var(--accent-color);
    font-size:1.2rem;
}

.quick-card p{
    margin:0 0 16px;
    line-height:1.6;
    color:#555;
    text-align: justify;
}

.quick-card-header{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:12px;
}

.quick-card-header h3{
    margin:0;
}

/* =========================
   MOBILE
========================= */

@media(max-width: 768px){

    .ktp-wrapper{
        padding-left: 15px;
        padding-right: 15px;
    }

    .ktp-hero{
        padding-top: 25px;
        padding-bottom: 20px;
    }

    .ktp-hero-content{
        padding: 35px 25px;
        border-radius: 24px;
    }

    .ktp-title{
        font-size: 30px;
    }

    .ktp-subtitle{
        font-size: 16px;
    }

    .ktp-card{
        border-radius: 24px;
    }

    .ktp-card-header{
        padding: 24px;
    }

    .ktp-card-header h2{
        font-size: 24px;
    }

    .ktp-table{
        width: 100%;
        table-layout: fixed;
    }

    .ktp-table tr td[colspan="3"]{
        font-size: 16px;
    }

    .ktp-table td{
        padding: 14px 12px;
        font-size: 14px;
    }

    .ktp-table td:first-child{
        width: 60px;
    }

    .ktp-table td:last-child{
        width: 120px;
    }

    .ktp-table .text{
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .quick-nav{
        grid-template-columns:repeat(1,minmax(280px,90%));
        gap:16px;
    }

    .quick-card{
        padding:20px;
    }

}