/* science-notes.css */

/* Global reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@100..900&display=swap');

body {
    /* font-family: 'Poppins', sans-serif; */
    font-family: "Noto Sans Devanagari", sans-serif;

    color: #2d2d2d;
    background: linear-gradient(135deg, #e9f0fa 0%, #d8e2f0 100%);
    line-height: 1.5;
    min-height: 100vh;
}


.chapter-title {
    width: 100%;
    margin: 2px auto;
    padding: 1rem 2rem;
    background: #fff;
    border-radius: 12px;
    /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); */
    text-align: center;
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
    font-size: 1.1rem;
    line-height: 1.5;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 4px solid;
    border-color: #0d9488 #14b8a6 #14b8a6 #0d9488;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3),
        /* Outer shadow for depth */
        -2px -2px 4px rgba(255, 255, 255, 0.5) inset,
        /* Inner highlight */
        2px 2px 4px rgba(0, 0, 0, 0.2) inset;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

.chapter-title:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.chapter-title h1 {
    font-size: 2rem;
    color: #003087;
    margin-bottom: 15px;
}

.chapter-title p a {
    color: #0052cc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.chapter-title p a:hover {
    color: #002b66;
    text-decoration: underline;
}

/* Navigation styling */
.nav-chap {
    width: 100%;
    margin: 4px auto;
    padding: 15px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    gap: 20px;
    /* box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 4px solid;
    border-color: #0d9488 #14b8a6 #14b8a6 #0d9488;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3),
        /* Outer shadow for depth */
        -2px -2px 4px rgba(255, 255, 255, 0.5) inset,
        /* Inner highlight */
        2px 2px 4px rgba(0, 0, 0, 0.2) inset;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

.nav-chap a {
    color: #003087;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.nav-chap a:hover {
    background-color: #e6f0fa;
    color: #002b66;
    transform: scale(1.08);
}

/* Main container styling */
.container-science {
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px;
    color: #1f07d6;
    line-height: 1.5;
    text-align: justify;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;


}

/* Section styling */
.section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    animation: fadeInUp 0.8s ease-out;

}

.section h2 {
    font-size: 1.5rem;
    color: #003087;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section h3 {
    font-size: 1.2rem;
    color: #2d2d2d;
    margin: 20px 0 15px;
}

/* Notes section content */
.content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}


.content strong {
    color: #2d2d2d;
}
.content span{
    color: red;
    background-color: #edfab2;
    padding: 4px;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}

.content ul {
    list-style-type: none;
    margin-left: 10px;
    margin-bottom: 20px;
}

.content ul li {
    margin-bottom: 12px;
    color: #160597;
}

.content ul ul {
    list-style-type: circle;
    margin-left: 10px;
}


/* Table styling for notes-table */
.notes-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 1.05rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.notes-table thead {
    background: linear-gradient(to right, #003087, #0052cc);
    color: #fff;
}

.notes-table th {
    padding: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notes-table tbody tr {
    border-bottom: 1px solid #e0e6f0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.notes-table tbody tr:hover {
    background-color: #f0f6ff;
    transform: translateX(6px);
}

.notes-table td {
    padding: 18px;
    vertical-align: middle;
}

.notes-table tbody tr:nth-child(even) {
    background-color: #f8faff;
}

/* MCQ section styling */
.container-science .question {
    margin: 5px 0;
    padding: 20px;
    border: 1px solid #e0e6f0;
    border-radius: 12px;
    background: #fff;
    font-size: 1.05rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.container-science .question:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.container-science .question p {
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d2d2d;
}


.container-science .question label {
    display: inline-flex;
    align-items: center;
    margin: 4px 0;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
    width: auto;
    min-width: 200px;
}

.container-science .question label:hover {
    background-color: #e6f0fa;
    transform: translateX(4px);
}

.container-science .question input[type="radio"] {
    margin-right: 10px;
    accent-color: #0052cc;
    transform: scale(1.3);
}

.container-science .question input[type="radio"]:checked+label {
    background-color: #e6f0fa;
    font-weight: 600;
}

.container-science .question label.correct {
    background-color: #d4edda !important;
    color: #28a745 !important;
    animation: pulse 0.5s ease;
}

.container-science .question label.incorrect {
    background-color: #f8d7da !important;
    color: #dc3545 !important;
    animation: shake 0.3s ease;
}

.container-science .question p.answer {
    margin-top: 15px;
    padding: 12px;
    background: #d4edda;
    color: #28a745;
    border-radius: 8px;
    font-weight: 600;
    animation: slideIn 0.6s ease-in;
    display: none;
}

/* Summary section (ordered list) */
.content ol {
    /* margin-left: 30px;
    margin-bottom: 20px; */
    list-style: none;
}

.content ol li {
    /*margin-bottom: 12px;
    */
    font-size: 1.05rem;
    margin: .5rem auto;
    background-color: #f0faad;
    padding: .5rem;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}



/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

/* .question input[type="radio"],
.question label {
  font-size: 16px;
  line-height: 1.5;
} */

/* Responsive design for mobile (≤600px) */
@media screen and (max-width: 800px) {

    .chapter-title {
        width: 100%;
        padding: 5px;
        margin: 1% .5rem;

    }

    .chapter-title h1 {
        font-size: 1.5rem;
    }

    .nav-chap {
        flex-direction: row;
        gap: 15px;
        padding: 6px;
        margin: 6px;
    }

    .nav-chap a {
        font-size: 1.1rem;
        padding: 10px 20px;
    }

    .container-science {
        width: 100%;
        padding: 15px;
    }

    .section {
        width: 100%;
        padding: .5rem;
    }

    li {
        font-size: 1rem;
    }

    .section h2 {
        font-size: 1.3rem;
    }

    .section h3 {
        font-size: 1.1rem;
    }

    .notes-table {
        font-size: 1rem;
    }

    .notes-table thead {
        display: none;
    }

    .notes-table tbody,
    .notes-table tr {
        display: block;
    }

    .notes-table tr {
        margin-bottom: 20px;
        border: 1px solid #e0e6f0;
        border-radius: 10px;
        background: #fff;
    }

    .notes-table td {
        display: block;
        text-align: right;
        position: relative;
        padding: 15px 15px 15px 50%;
        border-bottom: 1px solid #e0e6f0;
    }

    .notes-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        font-weight: 600;
        text-align: left;
        color: #003087;
    }

    .notes-table td:last-child {
        border-bottom: none;
    }

    .container-science .question {
        font-size: 0.95rem;
        padding: 15px;

    }

    .container-science .question label {
        padding: 4px 6px;
        min-width: 80%;
    }


}


/* Responsive design for tablet (601px–1024px) */
@media screen and (min-width: 601px) and (max-width: 1024px) {
    .chapter-title {
        width: 100%;
    }

    .nav-chap {
        width: 100%;
    }

    .chapter-title h1 {
        font-size: 1.5rem;
    }

    .nav-chap a {
        font-size: 1.1rem;
        padding: 10px 20px;
    }

    .content ul li {
        font-size: 1.1rem;
    }

    .notes-table {
        /* width: 80%; */
        font-size: 1rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .notes-table th,
    .notes-table td {
        padding: 15px;
    }

    .container-science .question {
        font-size: 1rem;
    }

    .container-science .question label {
        padding: 8px 12px;
        min-width: 150px;
    }
}

/* Accessibility enhancements */
a:focus,
input:focus,
button:focus {
    outline: 3px solid #002b66;
    outline-offset: 3px;
}

/* Font Awesome icon alignment */
.section h2 i {
    margin-right: 15px;
    color: #0052cc;
}


/* notes-table.css */

/* Base styles for the table */
.notes-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    border: 4px solid #007bff;
}

/* Table header styles */
.notes-table thead {
    background-color: #007bff;
    color: #fff;
    text-align: left;
}

.notes-table th {
    padding: 12px 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #007bff;


}

/* Table body styles */
.notes-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.notes-table tbody tr:hover {
    background-color: #f1f1f1;
}

.notes-table td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* Alternating row colors for better readability */
.notes-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Responsive design for mobile (≤600px) */
@media screen and (max-width: 480px) {
    .notes-table {
        font-size: 14px;
    }

    /* Stack table headers and cells for mobile */
    .notes-table thead {
        display: none;
        /* Hide headers on mobile */
    }

    .container-science-img {
        flex-direction: column;
    }

    .notes-table tbody,
    .notes-table tr {
        display: block;
    }

    .notes-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background-color: #fff;
    }

    .notes-table td {
        display: block;
        text-align: right;
        position: relative;
        padding-left: 50%;
        border-bottom: 1px solid #eee;
    }

    .notes-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        font-weight: 600;
        text-align: left;
        color: #007bff;
    }

    .notes-table td:last-child {
        border-bottom: none;
    }
}

/* Responsive design for tablet (601px–1024px) */
@media screen and (min-width: 601px) and (max-width: 1024px) {
    .notes-table {
        font-size: 15px;
    }

    .notes-table th,
    .notes-table td {
        padding: 10px 12px;
    }

    /* Ensure table fits within container */
    .notes-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Desktop styles (>1024px) */
@media screen and (min-width: 1025px) {

    .notes-table th,
    .notes-table td {
        padding: 15px 20px;
    }
}

/* Accessibility enhancements */
.notes-table th:focus,
.notes-table td:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Animation for table row appearance */
.notes-table tbody tr {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container-science img {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    border: 2px solid #ccc;
    border-radius: 10px;


}

.container-science-img {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.container-science-img img {
    max-width: 350px;
}