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

.notes-section {
    padding: 85px 7%;
    background: #f8fafc;
    min-height: 80vh;
}

/* Heading */

.notes-heading {
    text-align: center;
    margin-bottom: 55px;
}

.notes-heading > span {
    color: #dc2626;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.notes-heading h1 {
    color: #0f172a;
    font-size: 38px;
    margin: 15px 0;
}

.notes-heading h1 span {
    color: #dc2626;
}

.notes-heading p {
    color: #64748b;
    font-size: 16px;
}


/* ==============================
   CARDS CONTAINER
================================ */

.notes-container {
    max-width: 1150px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;

    align-items: stretch;
}


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

.notes-card {
    background: #ffffff;
    padding: 30px 25px;

    border: 1px solid #e2e8f0;
    border-radius: 17px;

    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);

    display: flex;
    flex-direction: column;

    position: relative;
    overflow: hidden;

    transition: 0.3s ease;
}

.notes-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: linear-gradient(90deg, #dc2626, #f97316);
}

.notes-card:hover {
    transform: translateY(-7px);
    border-color: #fca5a5;

    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.11);
}


/* Featured Card */

.featured-card {
    border-color: #fca5a5;
}


/* Icon */

.notes-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fee2e2;
    color: #dc2626;

    border-radius: 13px;
    font-size: 23px;

    margin-bottom: 20px;
}


/* Badge */

.level-badge {
    color: #dc2626;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}


/* Card Heading */

.notes-card h2 {
    color: #0f172a;
    font-size: 32px;
    margin: 10px 0 3px;
}

.notes-card h3 {
    color: #334155;
    font-size: 17px;
    margin-bottom: 12px;
}

.notes-card > p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    min-height: 72px;
}


/* Topics */

.notes-topics {
    display: flex;
    flex-direction: column;
    gap: 13px;

    margin: 20px 0 25px;
}

.notes-topics span {
    color: #334155;
    font-size: 13px;
}

.notes-topics i {
    color: #16a34a;
    margin-right: 8px;
}


/* Buttons */

.notes-buttons {
    display: flex;
    flex-direction: column;
    gap: 11px;

    margin-top: auto;
}

.notes-btn,
.test-btn {
    width: 100%;
    padding: 12px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    transition: 0.3s ease;
}


/* Study Notes Button */

.notes-btn {
    background: #dc2626;
    color: #ffffff;
    border: 1px solid #dc2626;
}

.notes-btn:hover {
    background: #b91c1c;
    color: #ffffff;
    transform: translateY(-2px);
}


/* Practice Test Button */

.test-btn {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.test-btn:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
}


/* ==============================
   RESPONSIVE DESIGN
================================ */

@media (max-width: 900px) {

    .notes-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .notes-section {
        padding: 60px 5%;
    }

    .notes-heading h1 {
        font-size: 29px;
    }

    .notes-heading p {
        font-size: 14px;
    }

    .notes-container {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .notes-card {
        padding: 27px 23px;
    }

    .notes-card > p {
        min-height: auto;
    }

}