/* ================= RESET ================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#f8f9fa;
    font-family:Arial, sans-serif;
    color:#333;
    line-height:1.6;
}

/* ================= PAGE HEADER ================= */

.page-header{
    background:#0d47a1;
    color:#fff;
    text-align:center;
    padding:35px 20px;
}

.page-header h1{
    font-size:2rem;
    margin-bottom:10px;
}

.page-header p{
    font-size:1.1rem;
}

/* ================= BREADCRUMB ================= */

.breadcrumb{
    background:#fff;
    padding:15px 20px;
    border-bottom:1px solid #ddd;
    font-size:15px;
}

.breadcrumb a{
    text-decoration:none;
    color:#0d47a1;
    font-weight:600;
}

.breadcrumb span{
    color:#666;
}

/* ================= CHAPTER GRID ================= */

.chapters{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:20px;
    padding:30px;
}

/* ================= CHAPTER CARD ================= */

.chapter-card{
    background:#fff;
    border-radius:12px;
    padding:25px;
    text-align:center;
    text-decoration:none;
    color:#333;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
    transition:0.3s;
}

.chapter-card:hover{
    transform:translateY(-5px);
    box-shadow:0 6px 20px rgba(0,0,0,0.15);
}

.chapter-card h3{
    color:#0d47a1;
    margin-bottom:10px;
    font-size:1.3rem;
}

.chapter-card p{
    color:#666;
}

/* ================= EXERCISE CONTENT ================= */

.exercise-content{
    max-width:1000px;
    margin:auto;
    padding:30px 20px;
}

/* ================= QUESTION CARD ================= */

.question-card{
    background:#fff;
    padding:25px;
    margin-bottom:30px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.question-card h2{
    color:#0d47a1;
    margin-bottom:15px;
    font-size:1.5rem;
}

.question-card h3{
    color:#333;
    margin-top:20px;
    margin-bottom:10px;
}

.question-card p{
    font-size:17px;
    line-height:1.8;
    color: rgb(68, 68, 69);
}

.question-card p strong{
    color: #000204;
}

/* ================= EXERCISE IMAGE ================= */

.exercise-banner{
    display:block;
    max-width:100%;
    margin:30px auto;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,0.15);
}

/* ================= BUTTON ================= */

.btn{
    display:inline-block;
    background:#0d47a1;
    color:#fff;
    padding:10px 20px;
    border-radius:6px;
    text-decoration:none;
    margin-top:15px;
    transition:0.3s;
}

.btn:hover{
    background:#08306b;
}

/* ================= MOBILE ================= */

@media (max-width:768px){

    .page-header{
        padding:25px 15px;
    }

    .page-header h1{
        font-size:1.6rem;
    }

    .page-header p{
        font-size:1rem;
    }

    .chapters{
        grid-template-columns:1fr;
        padding:20px;
    }

    .question-card{
        padding:18px;
    }

    .question-card h2{
        font-size:1.3rem;
    }

    .question-card p{
        font-size:16px;
    }

    .breadcrumb{
        font-size:14px;
    }
} 

/* PDF Download Button */

.download-section{
    text-align:center;
    margin:40px 0;
}

.download-btn{
    display:inline-block;
    background:#259388;
    color:#fff;
    text-decoration:none;
    padding:14px 28px;
    border-radius:8px;
    font-size:18px;
    font-weight:600;
    transition:.3s;
    box-shadow:0 4px 10px rgba(0,0,0,.2);
}

.download-btn:hover{
    background:#15c06a;
    transform:translateY(-2px);
}

/* ================= table css ================= */

/* ===========================
   Class 10 Chapter Table
=========================== */

.chapter-table{
    width:100%;
    max-width:1200px;
    margin:40px auto;
    padding:0 15px;
    box-sizing:border-box;
}

.chapter-table h2{
    text-align:center;
    color:#0d47a1;
    font-size:32px;
    margin-bottom:25px;
}

/* Table */

.exercise-table{
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(0,0,0,.12);
}

.exercise-table th{
    background:#0d47a1;
    color:#fff;
    padding:14px 8px;
    font-size:18px;
    border:1px solid #dcdcdc;
}

.exercise-table td{
    border:1px solid #dcdcdc;
    padding:12px 8px;
    font-size:16px;
    line-height:1.7;
    vertical-align:top;
    word-wrap:break-word;
    overflow-wrap:break-word;
}

.exercise-table tr:nth-child(even){
    background:#f8f9fc;
}

.exercise-table tr:hover{
    background:#eef5ff;
}

/* Column Width */

.exercise-table th:nth-child(1),
.exercise-table td:nth-child(1){
    width:8%;
    text-align:center;
}

.exercise-table th:nth-child(2),
.exercise-table td:nth-child(2){
    width:28%;
    font-weight:600;
}

.exercise-table th:nth-child(3),
.exercise-table td:nth-child(3){
    width:64%;
}

/* Links */

.exercise-table a{
    color:#0d47a1;
    text-decoration:none;
    font-weight:600;
    margin-right:8px;
    display:inline-block;
}

.exercise-table a:hover{
    text-decoration:underline;
}

/* ===========================
   Tablet
=========================== */

@media (max-width:768px){

.chapter-table{
    padding:0 10px;
}

.chapter-table h2{
    font-size:26px;
}

.exercise-table th{
    padding:10px 5px;
    font-size:15px;
}

.exercise-table td{
    padding:10px 5px;
    font-size:14px;
    line-height:1.5;
}

.exercise-table th:nth-child(1),
.exercise-table td:nth-child(1){
    width:10%;
}

.exercise-table th:nth-child(2),
.exercise-table td:nth-child(2){
    width:30%;
}

.exercise-table th:nth-child(3),
.exercise-table td:nth-child(3){
    width:60%;
}

.exercise-table a{
    font-size:13px;
    margin-right:4px;
}

}

/* ===========================
   Mobile
=========================== */

@media (max-width:480px){

.chapter-table h2{
    font-size:22px;
}

.exercise-table th{
    font-size:13px;
    padding:8px 4px;
}

.exercise-table td{
    font-size:12px;
    padding:8px 4px;
}

.exercise-table th:nth-child(1),
.exercise-table td:nth-child(1){
    width:8%;
}

.exercise-table th:nth-child(2),
.exercise-table td:nth-child(2){
    width:30%;
}

.exercise-table th:nth-child(3),
.exercise-table td:nth-child(3){
    width:62%;
}

.exercise-table a{
    font-size:11px;
    margin-right:2px;
}

}

/* =====================================================
   CLASS 10 SCIENCE SYLLABUS TABLE
===================================================== */

.science-syllabus {
    width: 100%;
    max-width: 1100px;
    margin: 35px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.science-syllabus h2 {
    text-align: center;
    color: #0d47a1;
    font-size: 30px;
    line-height: 1.3;
    margin: 0 0 10px;
}

.syllabus-intro {
    text-align: center;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px;
}


/* ================= TABLE ================= */

.science-table-wrapper {
    width: 100%;
    overflow: hidden;
}

.science-syllabus-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
    background: #ffffff;
    border: 1px solid #bdbdbd;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
}


/* ================= CAPTION ================= */

.science-syllabus-table caption {
    caption-side: top;
    text-align: left;
    padding: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}


/* ================= HEADER ================= */

.science-syllabus-table th {
    background: #0d47a1;
    color: #ffffff;
    border: 1px solid #0a3578;
    padding: 13px 12px;
    font-size: 17px;
    line-height: 1.4;
    text-align: left;
}


/* ================= CELLS ================= */

.science-syllabus-table td {
    border: 1px solid #c7c7c7;
    padding: 12px;
    font-size: 16px;
    line-height: 1.5;
    vertical-align: middle;
    overflow-wrap: break-word;
    word-break: normal;
}


/* Chapter column */

.science-syllabus-table th:first-child,
.science-syllabus-table td:first-child {
    width: 22%;
}


/* Chapter name column */

.science-syllabus-table th:last-child,
.science-syllabus-table td:last-child {
    width: 78%;
}


/* ================= ROW DESIGN ================= */

.science-syllabus-table tbody tr:nth-child(even) {
    background: #f7f9fc;
}

.science-syllabus-table tbody tr:hover {
    background: #eef5ff;
}


/* ================= LINKS ================= */

.science-syllabus-table a {
    color: #0d47a1;
    text-decoration: none;
    font-weight: 600;
}

.science-syllabus-table a:hover {
    text-decoration: underline;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .science-syllabus {
        margin: 30px auto;
        padding: 0 10px;
    }

    .science-syllabus h2 {
        font-size: 25px;
    }

    .syllabus-intro {
        font-size: 14px;
        line-height: 1.5;
    }

    .science-syllabus-table th {
        padding: 10px 7px;
        font-size: 14px;
    }

    .science-syllabus-table td {
        padding: 10px 7px;
        font-size: 14px;
        line-height: 1.45;
    }

    .science-syllabus-table th:first-child,
    .science-syllabus-table td:first-child {
        width: 25%;
    }

    .science-syllabus-table th:last-child,
    .science-syllabus-table td:last-child {
        width: 75%;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

    .science-syllabus {
        padding: 0 8px;
        margin: 25px auto;
    }

    .science-syllabus h2 {
        font-size: 22px;
    }

    .syllabus-intro {
        font-size: 13px;
    }

    .science-syllabus-table th {
        padding: 9px 5px;
        font-size: 13px;
    }

    .science-syllabus-table td {
        padding: 9px 5px;
        font-size: 13px;
        line-height: 1.4;
    }

    .science-syllabus-table th:first-child,
    .science-syllabus-table td:first-child {
        width: 27%;
    }

    .science-syllabus-table th:last-child,
    .science-syllabus-table td:last-child {
        width: 73%;
    }

}

/* =====================================================
   CLASS 10 SCIENCE CHAPTER PAGE
===================================================== */

.science-chapter-page {
    width: 100%;
    max-width: 1100px;
    margin: 35px auto;
    padding: 0 15px;
    box-sizing: border-box;
}


/* ================= INTRODUCTION ================= */

.chapter-introduction {
    margin-bottom: 35px;
}

.chapter-introduction h2,
.chapter-topics h2,
.chapter-material h2,
.chapter-content h2 {
    color: #0d47a1;
    font-size: 28px;
    margin-bottom: 15px;
}

.chapter-introduction p,
.chapter-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}


/* ================= TOPICS ================= */

.chapter-topics {
    margin-bottom: 35px;
    padding: 20px;
    background: #f7f9fc;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.chapter-topics ul {
    margin: 0;
    padding-left: 25px;
}

.chapter-topics li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 5px;
}


/* ================= MATERIAL ================= */

.chapter-material {
    margin-bottom: 35px;
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.material-card {
    display: block;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.material-card h3 {
    color: #0d47a1;
    margin: 0 0 8px;
    font-size: 20px;
}

.material-card p {
    color: #555;
    margin: 0;
    line-height: 1.6;
}

.material-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,.12);
}


/* ================= CONTENT ================= */

.chapter-content {
    margin-bottom: 35px;
}


/* ================= NAVIGATION ================= */

.chapter-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 30px 0;
}

.chapter-navigation a {
    display: inline-block;
    padding: 12px 18px;
    background: #0d47a1;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.chapter-navigation a:hover {
    background: #083575;
}


/* ================= MOBILE ================= */

@media (max-width: 600px) {

    .science-chapter-page {
        padding: 0 10px;
        margin: 25px auto;
    }

    .chapter-introduction h2,
    .chapter-topics h2,
    .chapter-material h2,
    .chapter-content h2 {
        font-size: 23px;
    }

    .chapter-introduction p,
    .chapter-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    .chapter-topics {
        padding: 15px;
    }

    .chapter-topics li {
        font-size: 14px;
        line-height: 1.7;
    }

    .material-grid {
        grid-template-columns: 1fr;
    }

    .material-card {
        padding: 16px;
    }

    .material-card h3 {
        font-size: 18px;
    }

    .chapter-navigation {
        flex-direction: column;
    }

    .chapter-navigation a {
        text-align: center;
    }

}