/* =========================
   STUDENT NOTES AND DASHBOARD
========================= */
body.page-dashboard .site-content,
body.page-student-dashboard .site-content,
body.page-slug-dashboard .site-content,
body.page-slug-student-dashboard .site-content {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4ecf7 50%, #dbe6f3 100%);
    padding: 40px 0;
}

body.page-dashboard article[id^="post-"],
body.page-student-dashboard article[id^="post-"],
body.page-slug-dashboard article[id^="post-"],
body.page-slug-student-dashboard article[id^="post-"] {
    padding: 40px 0;
}

body.page-dashboard article[id^="post-"] .dash-cards-row-outer,
body.page-student-dashboard article[id^="post-"] .dash-cards-row-outer,
body.page-slug-dashboard article[id^="post-"] .dash-cards-row-outer,
body.page-slug-student-dashboard article[id^="post-"] .dash-cards-row-outer {
    padding: 20px;
    border-radius: 16px;
}

body.page-dashboard article[id^="post-"] .container,
body.page-student-dashboard article[id^="post-"] .container,
body.page-slug-dashboard article[id^="post-"] .container,
body.page-slug-student-dashboard article[id^="post-"] .container {
    backdrop-filter: blur(6px);
}

.post-type-archive-academy_notes .post {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: 0.3s;
}

.post-type-archive-academy_notes .post:hover {
    transform: translateY(-5px);
}

.post-type-archive-academy_notes .entry-title {
    font-size: 18px;
    font-weight: 600;
}

.post-type-archive-academy_notes .entry-title a {
    text-decoration: none;
    color: #0073ff;
}

body.page-slug-notes .site-content,
body.tax-class .site-content,
body.tax-subject .site-content {
    background: linear-gradient(135deg, #f5f7fa, #e4ecf7, #dbe6f3);
    padding: 40px 0;
}

.apk-notes-subject-grid-outer {
    padding: 10px 0 20px;
}

.apk-notes-subject-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 180px;
    transition: all 0.35s ease;
    background: linear-gradient(135deg, #4f8cff, #6fa8ff);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    padding: 70px 20px 20px;
}

.apk-notes-subject-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2), transparent);
    z-index: 1;
}

.apk-notes-subject-card .card-body {
    position: relative;
    z-index: 2;
    min-height: 110px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.apk-notes-subject-card h5 {
    color: #fff;
    font-size: 32px;
    font-weight: 500;
    text-align: center;
    margin: 0;
}

.apk-notes-subject-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.apk-dashboard-subject-card {
    border-radius: 18px;
    padding: 70px 20px 20px;
    background: linear-gradient(135deg, #4f8cff, #6fa8ff);
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.apk-dashboard-subject-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.2), transparent);
    z-index: 1;
}

.apk-dashboard-subject-card .card-body {
    position: relative;
    z-index: 2;
}

.apk-dashboard-subject-btm {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.apk-dashboard-subject-card h5,
.apk-dashboard-subject-card h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.apk-dashboard-subject-btm .apk-subject-view-btn,
.apk-dashboard-subject-btm .apk-subject-download-btn {
    width: 85%;
    border-radius: 8px;
    font-size: 15px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none !important;
}

.apk-subject-view-btn {
    background-color: #fff;
    color: #333;
}

.apk-subject-download-btn {
    background-color: #ff7a18;
    color: #fff;
}

.apk-subject-view-btn:hover {
    background-color: #f1f1f1;
    color: #333;
}

.apk-subject-download-btn:hover {
    background-color: #e66a10;
    color: #fff;
}

.apk-dashboard-subject-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.apk-dashboard-subject-card .icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 26px;
    opacity: 0.85;
    z-index: 2;
}

.physics-card {
    background: linear-gradient(135deg, #4f8cff, #6fa8ff);
}

.chemistry-card {
    background: linear-gradient(135deg, #ff7a7a, #ffb199);
}

.maths-card {
    background: linear-gradient(135deg, #43cea2, #185a9d);
}

/* =========================
   STUDENT DASHBOARD REFINED
========================= */
.apk-student-dashboard {
    padding-top: 34px;
    padding-bottom: 50px;
}

.apk-student-dash-head {
    margin-bottom: 30px;
}

.apk-student-dash-head h2 {
    margin-bottom: 10px;
    color: #13233f;
    font-size: 62px;
    line-height: 1.05;
    font-weight: 800;
}

.apk-student-dash-head p {
    margin: 0;
    color: #607089;
    font-size: 18px;
    line-height: 1.7;
    max-width: 720px;
}

.apk-student-tabs-wrap {
    background: rgba(255,255,255,0.72);
    border-radius: 32px;
    padding: 26px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(219, 231, 251, 0.7);
}

.apk-student-tabs {
    gap: 12px;
    margin-bottom: 22px;
    border-bottom: none !important;
    flex-wrap: wrap;
}

.apk-student-tabs .nav-link {
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    background: linear-gradient(180deg, #eef4ff 0%, #e5edff 100%);
    color: #294a8f;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.01em;
    transition: all 0.28s ease;
    box-shadow: inset 0 0 0 1px rgba(201, 216, 246, 0.8);
}

.apk-student-tabs .nav-link:hover {
    background: linear-gradient(180deg, #e5edff 0%, #dce7ff 100%);
    color: #13233f;
    transform: translateY(-1px);
}

.apk-student-tabs .nav-link.active {
    background: linear-gradient(135deg, #c35817 0%, #e2751f 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(195, 88, 23, 0.22);
}

.apk-student-tab-content {
    background: #fff;
    border-radius: 28px;
    padding: 30px 28px;
    box-shadow: inset 0 0 0 1px rgba(231, 238, 250, 0.9);
}

.apk-student-pane-head {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf2fa;
}

.apk-student-pane-head h3 {
    margin-bottom: 8px;
    color: #13233f;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
}

.apk-student-pane-head p {
    margin: 0;
    color: #607089;
    line-height: 1.7;
    font-size: 16px;
}

.apk-student-tab-content .apk-notes-subject-grid-outer,
.apk-student-tab-content .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

.apk-student-tab-content .row {
    --bs-gutter-x: 1.2rem;
    --bs-gutter-y: 1.2rem;
}

.apk-student-tab-content .apk-notes-subject-card,
.apk-student-tab-content .apk-dashboard-subject-card {
    border-radius: 22px;
    min-height: 210px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.apk-student-tab-content .apk-notes-subject-card h5,
.apk-student-tab-content .apk-dashboard-subject-card h5 {
    font-size: 28px;
    font-weight: 600;
}

.apk-student-tab-content .apk-dashboard-subject-btm .apk-subject-view-btn,
.apk-student-tab-content .apk-dashboard-subject-btm .apk-subject-download-btn {
    width: 82%;
    border-radius: 12px;
    font-size: 14px;
    padding: 10px 14px;
}

.apk-student-tab-content .apk-notes-subject-card:hover,
.apk-student-tab-content .apk-dashboard-subject-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.apk-student-empty-state {
    padding: 34px 24px;
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
    border: 1px solid #dfe8fa;
}

.apk-student-empty-state h4 {
    color: #13233f;
    margin-bottom: 10px;
}

.apk-student-empty-state p {
    margin: 0;
    color: #607089;
}

.apk-student-note-single {
    padding: 44px 0 70px;
}

.apk-student-note-single-card {
    background: #fff;
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.08);
}

.apk-student-note-single-head {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf2fa;
}

.apk-student-note-single-head h1 {
    margin-bottom: 10px;
    color: #13233f;
    font-size: 42px;
    font-weight: 800;
}

.apk-student-note-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #607089;
    font-size: 15px;
    font-weight: 600;
}

.apk-student-note-pdf-frame {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #dfe8fa;
    background: #f8fbff;
}

.apk-student-note-file-actions {
    margin-bottom: 18px;
}

.apk-student-note-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c35817 0%, #e2751f 100%);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 16px 34px rgba(195, 88, 23, 0.18);
}

.apk-student-note-mobile-help {
    margin: 0 0 16px;
    color: #607089;
    line-height: 1.7;
}

.apk-student-note-pdf-frame iframe {
    display: block;
    width: 100%;
    min-height: 920px;
    border: 0;
}

.apk-student-note-image-frame {
    margin: 0;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid #dfe8fa;
    background: #f8fbff;
    text-align: center;
    overflow: hidden;
}

.apk-student-note-image-frame img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 1100px;
    margin: 0 auto;
    border-radius: 14px;
    object-fit: contain;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.apk-student-note-description {
    margin-top: 24px;
    color: #44516a;
    line-height: 1.8;
}

.apk-student-note-empty {
    margin: 0;
    color: #607089;
    line-height: 1.7;
}

.apk-student-dashboard-v2 {
    padding-top: 26px;
    padding-bottom: 56px;
}

.apk-student-dashboard-hero {
    margin-bottom: 28px;
}

.apk-student-dashboard-identity {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 28px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(219, 231, 251, 0.88);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.apk-student-dashboard-avatar img,
.apk-student-dashboard-avatar .avatar {
    display: block;
    width: 104px;
    height: 104px;
    border-radius: 28px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.apk-student-dashboard-copy {
    flex: 1;
}

.apk-student-dashboard-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef4ff;
    color: #294a8f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.apk-student-dashboard-copy h1 {
    margin-bottom: 10px;
    color: #13233f;
    font-size: 50px;
    line-height: 1.02;
    font-weight: 800;
}

.apk-student-dashboard-copy p {
    margin: 0;
    color: #607089;
    max-width: 760px;
    font-size: 17px;
    line-height: 1.75;
}

.apk-student-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.apk-student-panel {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    padding: 30px 28px;
    border: 1px solid rgba(219, 231, 251, 0.88);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.apk-student-panel-head {
    margin-bottom: 24px;
}

.apk-student-panel-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #c35817;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.apk-student-panel-head h2 {
    margin-bottom: 10px;
    color: #13233f;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.12;
}

.apk-student-panel-head p {
    margin: 0;
    color: #607089;
    line-height: 1.7;
}

.apk-student-article-grid {
    display: grid;
    gap: 22px;
}

.apk-student-article-card {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
    padding: 20px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #e7eef8;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.apk-student-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
}

.apk-student-article-thumb {
    display: block;
    min-height: 180px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #1f3f8b 0%, #4f8cff 100%);
}

.apk-student-article-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apk-student-article-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.apk-student-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    color: #607089;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.apk-student-article-body h3 {
    margin-bottom: 12px;
    font-size: 28px;
    line-height: 1.16;
    font-weight: 800;
}

.apk-student-article-body h3 a {
    color: #13233f !important;
    text-decoration: none;
}

.apk-student-article-body p {
    margin-bottom: 16px;
    color: #607089;
    line-height: 1.8;
}

.apk-student-article-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c35817 0%, #e2751f 100%);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    align-self: flex-start;
    box-shadow: 0 14px 30px rgba(195, 88, 23, 0.16);
}

.apk-student-dashboard-sidebar {
    display: grid;
    gap: 20px;
}

.apk-student-side-section {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 28px;
    padding: 24px 22px;
    border: 1px solid rgba(219, 231, 251, 0.88);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.apk-student-side-section h3 {
    margin-bottom: 16px;
    color: #13233f;
    font-size: 24px;
    font-weight: 800;
}

.apk-student-side-list {
    display: grid;
    gap: 12px;
}

.apk-student-side-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f7faff;
    border: 1px solid #e2eaf8;
    color: #13233f !important;
    text-decoration: none !important;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.apk-student-side-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    border-color: #c8d8f4;
}

.apk-student-side-link-label {
    font-weight: 700;
    line-height: 1.5;
}

.apk-student-side-link-action {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #294a8f;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.apk-student-side-empty {
    margin: 0;
    color: #607089;
    line-height: 1.7;
}

.navigation.post-navigation {
    display: none;
}

@media (max-width: 991px) {
    .apk-student-dash-head h2 {
        font-size: 46px;
    }

    .apk-student-pane-head h3 {
        font-size: 28px;
    }

    .apk-student-tab-content .apk-notes-subject-card h5,
    .apk-student-tab-content .apk-dashboard-subject-card h5 {
        font-size: 24px;
    }

    .apk-student-note-single-head h1 {
        font-size: 34px;
    }

    .apk-student-dashboard-copy h1 {
        font-size: 40px;
    }

    .apk-student-dashboard-layout,
    .apk-student-article-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .apk-notes-subject-card h5,
    .apk-dashboard-subject-card h5,
    .apk-dashboard-subject-card h3 {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .apk-student-dashboard-v2 {
        padding-top: 18px;
        padding-bottom: 36px;
    }

    .apk-student-dashboard-identity,
    .apk-student-panel,
    .apk-student-side-section {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .apk-student-dashboard-identity {
        align-items: flex-start;
        flex-direction: column;
    }

    .apk-student-dashboard-avatar img,
    .apk-student-dashboard-avatar .avatar {
        width: 88px;
        height: 88px;
        border-radius: 22px;
    }

    .apk-student-dashboard-copy h1 {
        font-size: 32px;
    }

    .apk-student-panel-head h2 {
        font-size: 26px;
    }

    .apk-student-article-card {
        padding: 16px;
        border-radius: 20px;
    }

    .apk-student-article-thumb {
        min-height: 170px;
        border-radius: 16px;
    }

    .apk-student-article-body h3 {
        font-size: 22px;
    }

    .apk-student-dashboard {
        padding-top: 24px;
        padding-bottom: 36px;
    }

    .apk-student-note-image-frame {
        padding: 10px;
        border-radius: 16px;
    }

    .apk-student-note-image-frame img {
        max-height: none;
        border-radius: 12px;
    }

    .apk-student-dash-head h2 {
        font-size: 36px;
    }

    .apk-student-dash-head p {
        font-size: 16px;
    }

    .apk-student-tabs-wrap {
        padding: 18px;
        border-radius: 22px;
    }

    .apk-student-tabs {
        display: flex;
        flex-direction: column;
    }

    .apk-student-tabs .nav-link {
        width: 100%;
        text-align: center;
    }

    .apk-student-tab-content {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .apk-student-pane-head h3 {
        font-size: 24px;
    }

    .apk-student-tab-content .apk-notes-subject-card,
    .apk-student-tab-content .apk-dashboard-subject-card {
        min-height: 180px;
    }

    .apk-student-tab-content .apk-notes-subject-card h5,
    .apk-student-tab-content .apk-dashboard-subject-card h5 {
        font-size: 22px;
    }

    .apk-student-note-single {
        padding: 28px 0 42px;
    }

    .apk-student-note-single-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .apk-student-note-single-head h1 {
        font-size: 28px;
    }

    .apk-student-note-pdf-frame iframe {
        min-height: 70vh;
    }
}
