/* ============================================================
   ACADEMY CSS - Centralized styles for Academy pages
   Pages: academy.php, projects.php, project.php, module.php
   ============================================================ */

/* ============================================================
   ACADEMY (stu- prefix) - academy.php
   ============================================================ */

.stu-page {
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1a1a1a;
    background: #fff;
}

/* ── Hero ── */
.stu-hero {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1040 40%, #2d1b69 100%);
    padding: 50px 0 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.stu-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(87,0,193,0.3) 0%, transparent 70%);
    border-radius: 50%;
}
.stu-hero-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #a78bfa;
    margin-bottom: 14px;
}
.stu-hero h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    text-align: left;
}
.stu-hero h1 span {
    background: linear-gradient(90deg, #a78bfa, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stu-hero-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    max-width: 520px;
    margin-bottom: 28px;
    text-align: left;
}
.stu-hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.stu-btn-accent {
    padding: 12px 28px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.stu-btn-accent:hover { background: #6d28d9; color: #fff; text-decoration: none; }
.stu-btn-ghost-hero {
    padding: 12px 28px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.stu-btn-ghost-hero:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }

.stu-hero-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.stu-hero-stat {
    text-align: left;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2px;
    padding: 20px 22px;
}
.stu-hero-stat-val {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}
.stu-hero-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Section ── */
.stu-section {
    padding: 60px 0;
}
.stu-section-alt { background: #f8f8fa; }
.stu-section-dark { background: #0a0a1a; color: #fff; }

.stu-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #7c3aed;
    margin-bottom: 10px;
}
.stu-section h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    text-align: left;
}
.stu-section-desc {
    font-size: 15px;
    color: #666;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 36px;
    text-align: left;
}

/* ── Learning Path Cards ── */
.stu-path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.stu-path-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 2px;
    padding: 28px;
    transition: box-shadow 0.2s;
    text-align: left;
}
.stu-path-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.stu-path-num {
    font-size: 11px;
    font-weight: 700;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.stu-path-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}
.stu-path-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 14px;
    text-align: left;
}
.stu-path-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 2px;
    margin-right: 4px;
}
.stu-tag-beginner { background: #ecfdf5; color: #059669; }
.stu-tag-intermediate { background: #fef3c7; color: #d97706; }
.stu-tag-advanced { background: #fce7f3; color: #db2777; }
.stu-tag-hours { background: #f0f0f0; color: #666; }
.stu-path-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 8px 18px;
    background: #7c3aed;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s;
}
.stu-path-btn:hover { background: #6d28d9; color: #fff; text-decoration: none; }
.stu-path-btn i { font-size: 10px; }

/* ── Video Cards ── */
.stu-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}
.stu-video-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 2px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.stu-video-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.stu-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.stu-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.stu-video-info {
    padding: 18px 20px;
}
.stu-video-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
}
.stu-video-info p {
    font-size: 12px;
    color: #888;
    margin: 0;
    text-align: left;
}
.stu-video-meta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.stu-video-meta span {
    font-size: 11px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 4px;
}
.stu-video-meta i { font-size: 10px; }

/* ── Topic Grid ── */
.stu-topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}
.stu-topic {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2px;
    transition: background 0.2s;
}
.stu-topic:hover { background: rgba(255,255,255,0.08); }
.stu-topic i {
    font-size: 20px;
    color: #a78bfa;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}
.stu-topic-text {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}
.stu-topic-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

/* ── Resource Row ── */
.stu-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.stu-resource {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 2px;
    padding: 22px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: box-shadow 0.2s;
}
.stu-resource:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.stu-resource i {
    font-size: 20px;
    color: #7c3aed;
    margin-top: 2px;
    flex-shrink: 0;
}
.stu-resource h4 {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
}
.stu-resource p {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}
.stu-resource a {
    font-size: 12px;
    color: #7c3aed;
    font-weight: 600;
    text-decoration: none;
    margin-top: 6px;
    display: inline-block;
    text-align: left;
}
.stu-resource a:hover { text-decoration: underline; }

/* ── CTA Banner ── */
.stu-cta-banner {
    background: linear-gradient(135deg, #7c3aed 0%, #5700c1 100%);
    padding: 50px 40px;
    border-radius: 2px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.stu-cta-banner h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}
.stu-cta-banner p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}
.stu-btn-white {
    padding: 14px 32px;
    background: #fff;
    color: #5700c1;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.stu-btn-white:hover { background: #f0f0f0; color: #5700c1; text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 992px) {
    .stu-hero-right { margin-top: 28px; }
}
@media (max-width: 768px) {
    .stu-hero { padding: 40px 0 30px; }
    .stu-hero h1 { font-size: 28px; }
    .stu-hero-right { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stu-cta-banner { flex-direction: column; text-align: center; }
    .stu-video-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   PROJECTS LIST (proj- prefix) - projects.php
   ============================================================ */

.proj-page {
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1a1a1a;
    background: #fff;
}

/* ── Hero ── */
.proj-hero {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1040 40%, #2d1b69 100%);
    padding: 50px 0 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.proj-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(87,0,193,0.25) 0%, transparent 70%);
    border-radius: 50%;
}
.proj-hero-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #a78bfa;
    margin-bottom: 14px;
}
.proj-hero h1 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    text-align: left;
}
.proj-hero h1 span {
    background: linear-gradient(90deg, #a78bfa, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.proj-hero-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    max-width: 540px;
    margin-bottom: 24px;
    text-align: left;
}
.proj-hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.proj-btn-accent {
    padding: 12px 28px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.proj-btn-accent:hover { background: #6d28d9; color: #fff; text-decoration: none; }
.proj-btn-ghost-hero {
    padding: 12px 28px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.proj-btn-ghost-hero:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }

.proj-hero-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.proj-hero-stat {
    text-align: left;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2px;
    padding: 20px 22px;
}
.proj-hero-stat-val {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}
.proj-hero-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Section ── */
.proj-section {
    padding: 60px 0;
}
.proj-section-alt { background: #f8f8fa; }

.proj-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #7c3aed;
    margin-bottom: 10px;
}
.proj-section h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: left;
}
.proj-section-desc {
    font-size: 15px;
    color: #666;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 36px;
    text-align: left;
}

/* ── Filter Tabs ── */
.proj-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.proj-filter-btn {
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #ddd;
    border-radius: 2px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
}
.proj-filter-btn:hover { border-color: #7c3aed; color: #7c3aed; }
.proj-filter-btn.active {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}

/* ── Project Cards ── */
.proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}
.proj-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 2px;
    padding: 0;
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.proj-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.proj-card-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.proj-card-icon {
    width: 44px;
    height: 44px;
    background: #7c3aed;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}
.proj-card-header-text {
    flex: 1;
}
.proj-card-header-text h3 {
    font-size: 17px;
    font-weight: 700;
    color: #000;
    margin-bottom: 2px;
    line-height: 1.3;
}
.proj-card-category {
    font-size: 11px;
    color: #7c3aed;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.proj-card-body {
    padding: 14px 24px 20px;
    flex: 1;
}
.proj-card-body p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 14px;
    text-align: left;
}

.proj-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    align-items: center;
}
.proj-card-tags-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.proj-card-majors {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.proj-card-chapters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}
.proj-ch-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 2px;
    letter-spacing: 0.3px;
    background: #f3f0ff;
    color: #7c3aed;
    text-decoration: none;
    transition: background 0.15s;
}
.proj-ch-tag:hover { background: #ede5ff; color: #5700c1; text-decoration: none; }

.proj-card-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.proj-size-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 2px;
    padding: 5px 10px;
    white-space: nowrap;
}
.proj-size-badge i { font-size: 10px; color: #7c3aed; }
.proj-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.proj-tag-ee { background: #dbeafe; color: #2563eb; }
.proj-tag-cs { background: #fce7f3; color: #db2777; }
.proj-tag-me { background: #fef3c7; color: #d97706; }
.proj-tag-physics { background: #ecfdf5; color: #059669; }
.proj-tag-bio { background: #f0fdf4; color: #16a34a; }
.proj-tag-env { background: #f0f9ff; color: #0284c7; }
.proj-tag-cyber { background: #fdf2f8; color: #be185d; }

.proj-card-footer {
    padding: 14px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.proj-difficulty {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
}
.proj-diff-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.proj-diff-beginner .proj-diff-dot { background: #059669; }
.proj-diff-beginner { color: #059669; }
.proj-diff-intermediate .proj-diff-dot { background: #d97706; }
.proj-diff-intermediate { color: #d97706; }
.proj-diff-advanced .proj-diff-dot { background: #db2777; }
.proj-diff-advanced { color: #db2777; }

.proj-timeline {
    font-size: 11px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 4px;
}
.proj-timeline i { font-size: 10px; }

/* ── Tips Section ── */
.proj-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.proj-tip {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 2px;
    padding: 24px;
    text-align: left;
}
.proj-tip-num {
    font-size: 28px;
    font-weight: 800;
    color: #e8e0f5;
    margin-bottom: 8px;
    line-height: 1;
}
.proj-tip h4 {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
}
.proj-tip p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}
.proj-tip a {
    text-align: left;
}

/* ── Card Button ── */
.proj-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #7c3aed;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 10px;
}
.proj-card-btn:hover { background: #6d28d9; color: #fff; text-decoration: none; }
.proj-card-btn i { font-size: 10px; }

/* ── CTA ── */
.proj-cta-banner {
    background: linear-gradient(135deg, #7c3aed 0%, #5700c1 100%);
    padding: 50px 40px;
    border-radius: 2px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.proj-cta-banner h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}
.proj-cta-banner p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}
.proj-btn-white {
    padding: 14px 32px;
    background: #fff;
    color: #5700c1;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.proj-btn-white:hover { background: #f0f0f0; color: #5700c1; text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 992px) {
    .proj-hero-right { margin-top: 28px; }
}
@media (max-width: 768px) {
    .proj-hero { padding: 40px 0 30px; }
    .proj-hero h1 { font-size: 28px; }
    .proj-hero-right { grid-template-columns: 1fr 1fr; gap: 10px; }
    .proj-cta-banner { flex-direction: column; text-align: center; }
    .proj-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   PROJECT DETAIL (pdet- prefix) - project.php
   ============================================================ */

.pdet-page {
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1a1a1a;
    background: #fff;
}

/* ── Header ── */
.pdet-header {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1040 40%, #2d1b69 100%);
    padding: 50px 0 40px;
    color: #fff;
}
.pdet-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}
.pdet-breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.pdet-breadcrumb a:hover { color: #a78bfa; }
.pdet-breadcrumb i { font-size: 8px; }
.pdet-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #a78bfa;
    margin-bottom: 12px;
}
.pdet-category-badge i { font-size: 14px; }
.pdet-header h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    text-align: left;
}
.pdet-header-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    max-width: 620px;
    text-align: left;
}
.pdet-header-meta {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.pdet-header-meta span {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 6px;
}
.pdet-header-meta i { font-size: 11px; color: #a78bfa; }
.pdet-header-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.pdet-stat {
    text-align: left;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2px;
    padding: 20px 22px;
}
.pdet-stat-val {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}
.pdet-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ── Layout ── */
.pdet-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 40px 0 60px;
    align-items: start;
}
@media (max-width: 992px) {
    .pdet-layout { grid-template-columns: 1fr; }
}

/* ── Content ── */
.pdet-content { text-align: left; }
.pdet-section {
    margin-bottom: 36px;
}
.pdet-section h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 14px;
    color: #000;
    text-align: left;
}
.pdet-section p {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 14px;
    text-align: left;
}

/* ── Info Box ── */
.pdet-info-box {
    background: #f5f0ff;
    border-left: 3px solid #7c3aed;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 2px 2px 0;
}
.pdet-info-box-title {
    font-size: 13px;
    font-weight: 700;
    color: #7c3aed;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pdet-info-box p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ── Locked Section ── */
.pdet-locked {
    position: relative;
    min-height: 180px;
}
.pdet-locked-content {
    filter: blur(6px);
    -webkit-filter: blur(6px);
    user-select: none;
    pointer-events: none;
    opacity: 0.4;
}
.pdet-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.pdet-locked-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 32px 40px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.pdet-locked-icon {
    width: 48px;
    height: 48px;
    background: #f5f0ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: #7c3aed;
    font-size: 20px;
}
.pdet-locked-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.pdet-locked-box p {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    line-height: 1.5;
}
.pdet-locked-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: #7c3aed;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s;
}
.pdet-locked-btn:hover { background: #6d28d9; color: #fff; text-decoration: none; }

/* ── Disciplines Grid ── */
.pdet-disciplines {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.pdet-discipline-card {
    background: #f8f8fa;
    border: 1px solid #eee;
    border-radius: 2px;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* ── Chapter Cards ── */
.pdet-chapter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}
.pdet-chapter-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f8fa;
    border: 1px solid #eee;
    border-radius: 2px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
.pdet-chapter-link:hover { border-color: #7c3aed; color: #7c3aed; text-decoration: none; }
.pdet-chapter-link i { color: #7c3aed; font-size: 12px; }

/* ── Sidebar ── */
.pdet-sidebar {
    position: sticky;
    top: 100px;
}
.pdet-sidebar-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 2px;
    padding: 24px;
    margin-bottom: 16px;
}
.pdet-sidebar-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 14px;
    text-align: left;
}
.pdet-sidebar-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}
.pdet-sidebar-item:last-child { border-bottom: none; }
.pdet-sidebar-item .label { color: #888; }
.pdet-sidebar-item .value { font-weight: 600; color: #1a1a1a; text-align: right; }

.pdet-sidebar-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.pdet-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.pdet-tag-ee { background: #dbeafe; color: #2563eb; }
.pdet-tag-cs { background: #fce7f3; color: #db2777; }
.pdet-tag-me { background: #fef3c7; color: #d97706; }
.pdet-tag-physics { background: #ecfdf5; color: #059669; }
.pdet-tag-env { background: #f0f9ff; color: #0284c7; }
.pdet-tag-bio { background: #fef9c3; color: #a16207; }
.pdet-tag-cyber { background: #fce4ec; color: #c62828; }

.pdet-sidebar-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    background: #7c3aed;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 2px;
    text-decoration: none;
    margin-top: 16px;
    transition: background 0.2s;
}
.pdet-sidebar-btn:hover { background: #6d28d9; color: #fff; text-decoration: none; }
.pdet-sidebar-btn-ghost {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    background: #fff;
    color: #7c3aed;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #7c3aed;
    border-radius: 2px;
    text-decoration: none;
    margin-top: 8px;
    transition: all 0.2s;
}
.pdet-sidebar-btn-ghost:hover { background: #f5f0ff; color: #7c3aed; text-decoration: none; }

/* ── Nav Buttons ── */
.pdet-nav-btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid #eee;
    margin-top: 40px;
}
.pdet-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.2s;
}
.pdet-nav-prev { background: #f4f4f6; color: #555; }
.pdet-nav-prev:hover { background: #eee; color: #333; text-decoration: none; }
.pdet-nav-next { background: #7c3aed; color: #fff; }
.pdet-nav-next:hover { background: #6d28d9; color: #fff; text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 992px) {
    .pdet-header-right { margin-top: 28px; }
}
@media (max-width: 768px) {
    .pdet-header { padding: 40px 0 30px; }
    .pdet-header h1 { font-size: 26px; }
    .pdet-header-right { grid-template-columns: 1fr 1fr; gap: 10px; }
    .pdet-nav-btns { flex-direction: column; }
}


/* ============================================================
   MODULE (mod- prefix) - module.php
   ============================================================ */

.mod-page {
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1a1a1a;
    background: #fff;
}

/* ── Module Header ── */
.mod-header {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1040 40%, #2d1b69 100%);
    padding: 80px 0 50px;
    color: #fff;
    position: relative;
}
.mod-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}
.mod-breadcrumb a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}
.mod-breadcrumb a:hover { color: #a78bfa; }
.mod-breadcrumb i { font-size: 8px; }
.mod-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #a78bfa;
    margin-bottom: 12px;
}
.mod-header h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    text-align: left;
}
.mod-header-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    max-width: 620px;
    text-align: left;
}
.mod-header-meta {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.mod-header-meta span {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 6px;
}
.mod-header-meta i { font-size: 11px; color: #a78bfa; }

/* ── Progress Bar ── */
.mod-progress-bar {
    background: #f4f4f6;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 50;
}
.mod-progress-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}
.mod-progress-track {
    flex: 1;
    height: 6px;
    background: #e5e5e5;
    border-radius: 3px;
    overflow: hidden;
}
.mod-progress-fill {
    height: 100%;
    background: #7c3aed;
    border-radius: 3px;
    width: 0%;
    transition: width 0.4s ease;
}
.mod-progress-text {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    white-space: nowrap;
}

/* ── Layout ── */
.mod-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    padding: 40px 0 60px;
    align-items: start;
}
@media (max-width: 992px) {
    .mod-layout { grid-template-columns: 1fr; }
    .mod-sidebar { display: none; }
}

/* ── Sidebar Nav ── */
.mod-sidebar {
    position: sticky;
    top: 70px;
}
.mod-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mod-sidebar-nav li {
    margin-bottom: 2px;
}
.mod-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    border-radius: 2px;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}
.mod-sidebar-nav a:hover { color: #1a1a1a; background: #f8f8fa; }
.mod-sidebar-nav a.active {
    color: #7c3aed;
    background: #f5f0ff;
    border-left-color: #7c3aed;
    font-weight: 700;
}
.mod-sidebar-nav a i { font-size: 11px; width: 16px; text-align: center; flex-shrink: 0; }
.mod-sidebar-nav .mod-nav-check {
    color: #059669;
    font-size: 10px;
    margin-left: auto;
}

/* ── Content ── */
.mod-content {
    max-width: 760px;
    text-align: left;
}
.mod-content-section {
    margin-bottom: 48px;
    scroll-margin-top: 80px;
}
.mod-content-section h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #000;
    text-align: left;
}
.mod-content-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 12px;
    color: #1a1a1a;
    text-align: left;
}
.mod-content-section p {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 16px;
    text-align: left;
}
.mod-content-section ul, .mod-content-section ol {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 16px;
    padding-left: 20px;
    text-align: left;
}
.mod-content-section li {
    margin-bottom: 6px;
}

/* ── Info Box ── */
.mod-info-box {
    background: #f5f0ff;
    border-left: 3px solid #7c3aed;
    padding: 18px 22px;
    margin: 24px 0;
    border-radius: 0 2px 2px 0;
}
.mod-info-box-title {
    font-size: 13px;
    font-weight: 700;
    color: #7c3aed;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mod-info-box p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ── Spec Table ── */
.mod-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13px;
}
.mod-spec-table th {
    text-align: left;
    padding: 10px 14px;
    background: #f8f8fa;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #eee;
}
.mod-spec-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    text-align: left;
}
.mod-spec-table tr:hover td { background: #fafafa; }

/* ── Image / Figure ── */
.mod-figure {
    margin: 28px 0;
    text-align: center;
}
.mod-figure img {
    max-width: 100%;
    border: 1px solid #eee;
    border-radius: 2px;
}
.mod-figure figcaption {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
    font-style: italic;
}

/* ── Video Embed ── */
.mod-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 24px 0;
    border-radius: 2px;
    border: 1px solid #eee;
}
.mod-video iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ── Quiz ── */
.mod-quiz {
    background: #f8f8fa;
    border: 1px solid #eee;
    border-radius: 2px;
    padding: 28px;
    margin: 28px 0;
}
.mod-quiz-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000;
}
.mod-quiz-title i { color: #7c3aed; }
.mod-quiz-q {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}
.mod-quiz-opts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.mod-quiz-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}
.mod-quiz-opt:hover { border-color: #7c3aed; background: #faf8ff; }
.mod-quiz-opt.selected { border-color: #7c3aed; background: #f5f0ff; }
.mod-quiz-opt.correct { border-color: #059669; background: #ecfdf5; }
.mod-quiz-opt.incorrect { border-color: #ef4444; background: #fef2f2; opacity: 0.7; }
.mod-quiz-opt input[type="radio"] { accent-color: #7c3aed; }
.mod-quiz-check {
    padding: 10px 22px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.mod-quiz-check:hover { background: #6d28d9; }
.mod-quiz-check:disabled { background: #ccc; cursor: not-allowed; }
.mod-quiz-result {
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    display: none;
}
.mod-quiz-result.show { display: block; }
.mod-quiz-result.pass { color: #059669; }
.mod-quiz-result.fail { color: #ef4444; }

/* ── Nav Buttons ── */
.mod-nav-btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid #eee;
    margin-top: 48px;
}
.mod-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.2s;
}
.mod-nav-prev {
    background: #f4f4f6;
    color: #555;
}
.mod-nav-prev:hover { background: #eee; color: #333; text-decoration: none; }
.mod-nav-next {
    background: #7c3aed;
    color: #fff;
}
.mod-nav-next:hover { background: #6d28d9; color: #fff; text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .mod-header { padding: 60px 0 40px; }
    .mod-header h1 { font-size: 26px; }
    .mod-nav-btns { flex-direction: column; }
}

.pdet-tag-math       { background: #ede9fe; color: #6d28d9; }
.pdet-tag-chem       { background: #fef3c7; color: #92400e; }
.pdet-tag-biomed     { background: #fce7f3; color: #9d174d; }
.pdet-tag-aero       { background: #e0e7ff; color: #3730a3; }
.pdet-tag-matsci     { background: #f5f5f4; color: #57534e; }
.pdet-tag-geo        { background: #d9f99d; color: #3f6212; }
.pdet-tag-atmo       { background: #e0f2fe; color: #075985; }
.pdet-tag-telecom    { background: #fef9c3; color: #854d0e; }
.pdet-tag-systems    { background: #f3e8ff; color: #7e22ce; }
.pdet-tag-industrial { background: #fee2e2; color: #991b1b; }
.pdet-tag-optics     { background: #ecfdf5; color: #065f46; }
.pdet-tag-nuclear    { background: #fff7ed; color: #9a3412; }
.pdet-tag-astro      { background: #1e1b4b; color: #c7d2fe; }