/* =====================================================
   CAMPUSNOTES — DBMS SUBJECT PAGE
   Organized, token-driven, premium finish.
   Layout, breakpoints & theme colors preserved exactly.
===================================================== */
 
 
/* =====================================================
   DESIGN TOKENS
===================================================== */
 
:root {
 
    /* Brand / accent */
    --color-primary: #6542f5;
    --color-primary-dark: #4930d6;
    --color-primary-soft: #f0edff;
    --color-primary-softer: #f7f5ff;
 
    /* Text */
    --color-ink: #101a3a;
    --color-ink-soft: #17203d;
    --color-body: #607195;
    --color-body-muted: #657595;
    --color-body-light: #617292;
    --color-label: #71809d;
 
    /* Surfaces / lines */
    --color-surface: #ffffff;
    --color-border: #e2def4;
    --color-border-hover: #cfc4ff;
    --color-divider: #ddd9ef;
 
    /* Unit icon tints */
    --tint-purple: #efedff;
    --tint-blue: #eaf5ff;
    --tint-green: #e8f8f4;
    --tint-yellow: #fff4d9;
    --tint-pink: #fdeaf6;
 
    /* Dot pattern */
    --dot-color: #d4cdfd;
    --dot-color-soft: #d5cffc;
 
    /* Elevation */
    --shadow-xs: 0 3px 10px rgba(89, 69, 170, 0.08);
    --shadow-sm: 0 8px 24px rgba(89, 69, 170, 0.10);
    --shadow-md: 0 22px 45px rgba(89, 69, 170, 0.20);
    --shadow-lg: 0 30px 60px rgba(89, 69, 170, 0.24);
    --shadow-btn: 0 14px 30px rgba(101, 66, 245, 0.38);
    --shadow-icon: 0 10px 20px rgba(101, 66, 245, 0.18);
 
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7d5bff 0%, var(--color-primary) 55%, var(--color-primary-dark) 100%);
    --gradient-text: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary) 60%, #9b7dff);
 
    /* Radius */
    --radius-sm: 9px;
    --radius-md: 15px;
    --radius-lg: 17px;
    --radius-pill: 30px;
 
    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s var(--ease);
    --transition-med: 0.25s var(--ease);
    --transition-slow: 0.35s var(--ease);
 
    /* Type */
    --font-base: "Lexend", sans-serif;
}
 
 
/* =====================================================
   RESET
===================================================== */
 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
html {
    scroll-behavior: smooth;
}
 
body {
    font-family: var(--font-base);
    color: var(--color-ink);
    background: var(--color-surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
 
a {
    text-decoration: none;
    color: inherit;
}
 
img {
    max-width: 100%;
}
 
 
/* =====================================================
   MAIN PAGE
===================================================== */
 
.cnsp-subject-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--color-surface);
}
 
 
/* =====================================================
   BACKGROUND DECORATIONS
===================================================== */
 
.cnsp-bg-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(0.5px);
}
 
 
/* Top left */
 
.cnsp-bg-top-left {
    width: 360px;
    height: 330px;
    left: -190px;
    top: -160px;
 
    background: radial-gradient(circle at 30% 30%, var(--color-primary-softer), var(--tint-purple));
}
 
 
/* Top right */
 
.cnsp-bg-top-right {
    width: 360px;
    height: 330px;
    right: -180px;
    top: -190px;
 
    background: radial-gradient(circle at 70% 30%, #ffffff, var(--color-primary-softer));
}
 
 
/* Bottom right */
 
.cnsp-bg-bottom-right {
    width: 500px;
    height: 360px;
    right: -210px;
    bottom: -240px;
 
    background: radial-gradient(circle at 60% 60%, var(--color-primary-softer), var(--tint-purple));
}
 
 
/* Bottom left */
 
.cnsp-bg-bottom-left {
    width: 450px;
    height: 300px;
    left: -240px;
    bottom: -210px;
 
    background: radial-gradient(circle at 40% 60%, var(--color-primary-softer), var(--tint-purple));
}
 
 
/* =====================================================
   DOT PATTERNS
===================================================== */
 
.cnsp-dots {
    position: absolute;
    width: 150px;
    height: 150px;
 
    background-image:
        radial-gradient(
            circle,
            var(--dot-color) 2px,
            transparent 2.5px
        );
 
    background-size: 22px 22px;
 
    opacity: 0.7;
 
    pointer-events: none;
    z-index: 0;
}
 
 
/* Left */
 
.cnsp-dots-left {
    left: 0;
    top: 80px;
}
 
 
/* Right */
 
.cnsp-dots-right {
    right: 0;
    top: 5px;
}
 
 
/* Bottom */
 
.cnsp-dots-bottom {
    right: 50px;
    bottom: 50px;
}
 
 
/* =====================================================
   HERO
===================================================== */
 
.cnsp-subject-hero {
    position: relative;
    z-index: 1;
 
    width: 100%;
 
    padding: 20px 5% 35px;
}
 
 
.cnsp-hero-container {
    position: relative;
 
    width: 100%;
    max-width: 1250px;
 
    min-height: 450px;
 
    margin: 0 auto;
 
    display: flex;
    align-items: center;
 
    padding-top: 45px;
}
 
 
/* =====================================================
   BACK BUTTON
===================================================== */
 
.cnsp-back-btn {
    position: absolute;
 
    top: 0;
    left: 0;
 
    display: inline-flex;
    align-items: center;
    gap: 8px;
 
    padding: 11px 19px;
 
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
 
    background: var(--color-primary-soft);
    box-shadow: var(--shadow-xs);
 
    color: var(--color-primary-dark);
 
    font-size: 14px;
    font-weight: 600;
 
    transition:
        transform var(--transition-fast),
        background var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast);
}
 
.cnsp-back-btn span:first-child {
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}
 
.cnsp-back-btn:hover {
    transform: translateX(-4px);
    background: #ffffff;
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md);
}
 
.cnsp-back-btn:active {
    transform: translateX(-1px) scale(0.98);
}
 
 
/* =====================================================
   HERO CONTENT
===================================================== */
 
.cnsp-hero-content {
    position: relative;
    z-index: 3;
 
    width: 68%;
    max-width: 760px;
}
 
 
.cnsp-subject-label {
    margin-bottom: 13px;
 
    color: var(--color-primary);
 
    font-size: 13px;
    font-weight: 700;
 
    letter-spacing: 3px;
}
 
 
/* =====================================================
   TITLE
===================================================== */
 
.cnsp-subject-title-row {
    display: flex;
    align-items: center;
    gap: 25px;
}
 
 
.cnsp-subject-icon {
    width: 76px;
    height: 76px;
 
    flex: 0 0 76px;
 
    display: flex;
    align-items: center;
    justify-content: center;
 
    border-radius: 17px;
 
    background: var(--gradient-primary);
    box-shadow: var(--shadow-icon);
 
    overflow: hidden;
}
 
.cnsp-subject-icon img {
    width: 100%;
    height: 100%;
 
    object-fit: contain;
 
    display: block;
}
 
 
.cnsp-subject-title-row h1 {
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-ink);
 
    font-size: clamp(42px, 4.5vw, 62px);
 
    line-height: 1.03;
 
    letter-spacing: -2.5px;
 
    font-weight: 700;
}
 
 
/* "Database" and "System" stay solid black/ink while
   "Management" keeps the original gradient styling. */
.cnsp-subject-title-row h1 .cnsp-title-black {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: var(--color-ink);
    color: var(--color-ink);
}
 
 
/* =====================================================
   TITLE LINE
===================================================== */
 
.cnsp-title-line {
    width: 48px;
    height: 5px;
 
    margin: 23px 0 18px;
 
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
 
    border-radius: 5px;
}
 
 
/* =====================================================
   DESCRIPTION
===================================================== */
 
.cnsp-subject-description {
    max-width: 680px;
 
    color: var(--color-body);
 
    font-size: 15px;
 
    line-height: 1.65;
}
 
 
/* =====================================================
   SUBJECT INFO
===================================================== */
 
.cnsp-subject-info {
    display: flex;
    align-items: center;
 
    margin-top: 28px;
 
    padding: 16px 22px;
 
    border-radius: 16px;
    border: 1px solid var(--color-border);
 
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
 
    box-shadow: var(--shadow-sm);
 
    width: fit-content;
}
 
 
.cnsp-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
 
    min-width: 160px;
}
 
 
.cnsp-info-icon {
    width: 50px;
    height: 50px;
 
    flex: 0 0 50px;
 
    display: flex;
    align-items: center;
    justify-content: center;
 
    background: transparent;
 
    overflow: hidden;
}
 
.cnsp-info-icon img {
    width: 100%;
    height: 100%;
 
    object-fit: contain;
 
    display: block;
}
 
/* Semester image has more internal whitespace,
   so enlarge only the actual image visually. */
.cnsp-info-item:first-child .cnsp-info-icon img {
    transform: scale(1.65);
}
 
 
.cnsp-info-item span {
    display: block;
 
    margin-bottom: 3px;
 
    color: var(--color-label);
 
    font-size: 11px;
    letter-spacing: 0.3px;
}
 
 
.cnsp-info-item strong {
    display: block;
 
    color: var(--color-ink-soft);
 
    font-size: 14px;
    font-weight: 600;
}
 
 
.cnsp-info-divider {
    width: 1px;
    height: 42px;
 
    margin: 0 22px;
 
    background: var(--color-divider);
}
 
 
/* =====================================================
   HERO ILLUSTRATION
===================================================== */
 
.cnsp-hero-illustration {
    position: absolute;
 
    right: 0;
    bottom: 5px;
 
    width: 360px;
    height: 300px;
 
    display: flex;
    align-items: center;
    justify-content: center;
 
    z-index: 2;
 
    filter: drop-shadow(0 18px 30px rgba(89, 69, 170, 0.18));
}
 
 
.cnsp-hero-illustration img {
    width: 100%;
    height: 100%;
 
    object-fit: contain;
 
    display: block;
}
 
 
/* =====================================================
   HERO HANDWRITTEN NOTE
===================================================== */
 
.cnsp-hero-note {
    position: absolute;
 
    right: 0;
    top: 80px;
 
    z-index: 4;
 
    color: var(--color-primary);
 
    font-size: 19px;
    font-weight: 600;
 
    line-height: 1.35;
 
    font-style: italic;
 
    transform: rotate(-2deg);
}
 
 
.cnsp-hero-note span {
    display: block;
 
    width: 105px;
    height: 3px;
 
    margin-top: 8px;
 
    background: var(--color-primary);
 
    transform: rotate(-2deg);
}
 
 
/* =====================================================
   UNITS SECTION
===================================================== */
 
.cnsp-units-section {
    position: relative;
    z-index: 2;
 
    width: 100%;
 
    padding: 35px 5% 100px;
}
 
 
.cnsp-units-container {
    width: 100%;
    max-width: 1250px;
 
    margin: 0 auto;
}
 
 
/* =====================================================
   UNITS HEADING
===================================================== */
 
.cnsp-units-heading {
    display: flex;
 
    align-items: flex-end;
    justify-content: space-between;
 
    gap: 40px;
 
    margin-bottom: 40px;
}
 
 
.cnsp-section-label {
    margin-bottom: 12px;
 
    color: var(--color-primary);
 
    font-size: 12px;
    font-weight: 700;
 
    letter-spacing: 3px;
}
 
 
.cnsp-units-heading h2 {
    color: var(--color-ink);
 
    font-size: clamp(30px, 3.2vw, 43px);
 
    line-height: 1.1;
 
    letter-spacing: -1.5px;
}
 
 
.cnsp-units-heading h2 span {
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-primary);
}
 
 
.cnsp-units-heading-note {
    width: 300px;
 
    flex-shrink: 0;
}
 
 
.cnsp-units-heading-note > span {
    display: block;
 
    width: 38px;
    height: 4px;
 
    margin-bottom: 10px;
 
    background: var(--color-primary);
}
 
 
.cnsp-units-heading-note p {
    color: var(--color-body-muted);
 
    font-size: 13px;
 
    line-height: 1.55;
}
 
 
/* =====================================================
   UNIT GRID
===================================================== */
 
.cnsp-unit-grid {
    display: grid;
 
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
 
    gap: 26px;
}
 
 
/* =====================================================
   UNIT CARD
===================================================== */
 
.cnsp-unit-card {
    position: relative;
 
    min-height: 330px;
 
    padding: 20px 20px 18px;
 
    display: flex;
    flex-direction: column;
 
    border: 1px solid var(--color-border);
 
    border-radius: var(--radius-lg);
 
    background: var(--color-surface);
 
    box-shadow: var(--shadow-sm);
 
    transition:
        transform var(--transition-med),
        box-shadow var(--transition-med),
        border-color var(--transition-med);
 
    will-change: transform;
}
 
 
.cnsp-unit-card:hover {
    transform: translateY(-9px) scale(1.015);
 
    border-color: var(--color-border-hover);
 
    box-shadow: var(--shadow-lg);
}
 
 
/* =====================================================
   UNIT ICON
===================================================== */
 
.cnsp-unit-icon {
    width: 68px;
    height: 68px;
 
    margin-bottom: 12px;
 
    display: flex;
    align-items: center;
    justify-content: center;
 
    border-radius: var(--radius-md);
 
    overflow: hidden;
 
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}
 
.cnsp-unit-card:hover .cnsp-unit-icon {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: var(--shadow-icon);
}
 
 
.cnsp-unit-icon img {
    width: 100%;
    height: 100%;
 
    object-fit: contain;
 
    display: block;
}
 
 
/* Fallback backgrounds */
 
.cnsp-unit-icon.cnsp-purple {
    background: var(--tint-purple);
}
 
.cnsp-unit-icon.cnsp-blue {
    background: var(--tint-blue);
}
 
.cnsp-unit-icon.cnsp-green {
    background: var(--tint-green);
}
 
.cnsp-unit-icon.cnsp-yellow {
    background: var(--tint-yellow);
}
 
.cnsp-unit-icon.cnsp-pink {
    background: var(--tint-pink);
}
 
 
/* =====================================================
   UNIT NUMBER
===================================================== */
 
.cnsp-unit-number {
    margin-bottom: 9px;
 
    color: var(--color-primary);
 
    font-size: 12px;
    font-weight: 700;
 
    letter-spacing: 2px;
}
 
 
/* =====================================================
   UNIT TITLE
===================================================== */
 
.cnsp-unit-card h3 {
    margin-bottom: 9px;
 
    color: var(--color-ink);
 
    font-size: 19px;
    font-weight: 600;
 
    line-height: 1.3;
 
    letter-spacing: -0.4px;
}
 
 
/* =====================================================
   UNIT DESCRIPTION
===================================================== */
 
.cnsp-unit-card > p {
    color: var(--color-body-light);
 
    font-size: 12px;
 
    line-height: 1.55;
}
 
 
/* =====================================================
   UNIT META
===================================================== */
 
.cnsp-unit-meta {
    display: flex;
    align-items: center;
 
    gap: 10px;
 
    margin-top: auto;
    margin-bottom: 14px;
}
 
 
.cnsp-unit-meta span {
    display: inline-flex;
    align-items: center;
 
    padding: 8px 11px;
 
    border-radius: var(--radius-sm);
    border: 1px solid rgba(101, 66, 245, 0.12);
 
    background: var(--color-primary-soft);
 
    color: #6048d9;
 
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
 
    white-space: nowrap;
}
 
 
/* =====================================================
   UNIT BUTTON
===================================================== */
 
.cnsp-unit-btn {
    width: 100%;
 
    height: 44px;
 
    display: flex;
    align-items: center;
    justify-content: center;
 
    gap: 9px;
 
    border-radius: 10px;
 
    background: var(--color-primary-soft);
 
    color: #5c40d9;
 
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
 
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}
 
.cnsp-unit-card:hover .cnsp-unit-btn {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: var(--shadow-btn);
}
 
 
.cnsp-unit-btn span {
    font-size: 18px;
 
    line-height: 1;
 
    transition: transform var(--transition-fast);
}
 
 
.cnsp-unit-btn:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
 
    color: #ffffff;
 
    box-shadow: var(--shadow-btn);
}
 
.cnsp-unit-btn:hover span {
    transform: translateX(3px);
}
 
.cnsp-unit-btn:active {
    transform: scale(0.98);
}
 
 
/* =====================================================
   DECORATIVE UNIT AREA
===================================================== */
 
.cnsp-unit-decoration {
    min-height: 330px;
 
    position: relative;
 
    display: flex;
 
    flex-direction: column;
 
    align-items: center;
 
    justify-content: center;
 
    text-align: center;
}
 
 
.cnsp-mini-dots {
    position: absolute;
 
    right: 10px;
    top: 10px;
 
    width: 100px;
    height: 100px;
 
    background-image:
        radial-gradient(
            circle,
            var(--dot-color-soft) 2px,
            transparent 2.5px
        );
 
    background-size: 18px 18px;
 
    opacity: 0.65;
}
 
 
.cnsp-graduation-icon {
    margin-bottom: 10px;
 
    font-size: 38px;
}
 
 
.cnsp-unit-decoration p {
    color: var(--color-primary);
 
    font-size: 18px;
 
    line-height: 1.45;
 
    font-style: italic;
}
 
 
.cnsp-underline {
    width: 80px;
    height: 3px;
 
    margin-top: 10px;
 
    background: var(--color-primary);
 
    transform: rotate(-3deg);
}
 
 
/* =====================================================
   SITE FOOTER
===================================================== */
 
.cnsp-site-footer {
    position: relative;
    z-index: 1;
 
    width: 100%;
 
    margin-top: 10px;
 
    background:
        linear-gradient(180deg, var(--color-primary-softer) 0%, #ffffff 100%);
 
    border-top: 1px solid var(--color-divider);
}
 
 
.cnsp-outro-container {
    width: 100%;
    max-width: 900px;
 
    margin: 0 auto;
 
    padding: 34px 5% 18px;
}
 
 
/* ---------- Heading ---------- */
 
.cnsp-outro-heading {
    text-align: center;
 
    margin-bottom: 20px;
}
 
.cnsp-outro-heading .cnsp-section-label {
    color: var(--color-primary);
 
    font-size: 11px;
    font-weight: 700;
 
    letter-spacing: 2.5px;
 
    margin-bottom: 6px;
}
 
.cnsp-outro-heading h2 {
    color: var(--color-ink);
 
    font-size: clamp(20px, 2.1vw, 26px);
 
    line-height: 1.15;
 
    letter-spacing: -0.6px;
}
 
.cnsp-outro-heading h2 span {
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-primary);
}
 
 
/* ---------- Grid ---------- */
 
.cnsp-outro-grid {
    display: grid;
 
    grid-template-columns: repeat(3, minmax(0, 1fr));
 
    gap: 14px;
}
 
 
/* ---------- Stat cards ---------- */
 
.cnsp-outro-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
 
    text-align: center;
 
    min-width: 0;
 
    padding: 16px 12px;
 
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
 
    background: var(--color-surface);
 
    box-shadow: var(--shadow-xs);
 
    transition:
        transform var(--transition-med),
        box-shadow var(--transition-med),
        border-color var(--transition-med);
}
 
.cnsp-outro-card:hover {
    transform: translateY(-4px);
 
    border-color: var(--color-border-hover);
 
    box-shadow: var(--shadow-sm);
}
 
.cnsp-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
 
    width: 45px;
    height: 45px;
 
    margin-bottom: 8px;
 
    border-radius: 10px;
 
   
 
    font-size: 15px;
 
    overflow: hidden;
}
 
.cnsp-stat-icon img {
    width: 100%;
    height: 100%;
 
    object-fit: contain;
 
    display: block;
}
 
.cnsp-stat-value {
    color: var(--color-primary-dark);
 
    font-size: 19px;
    font-weight: 700;
 
    letter-spacing: -0.4px;
}
 
.cnsp-stat-label {
    margin-top: 2px;
 
    color: var(--color-label);
 
    font-size: 9.5px;
    font-weight: 600;
 
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
 
 
/* ---------- Copyright line ---------- */
 
.cnsp-footer-bottom {
    margin-top: 20px;
    padding-top: 12px;
 
    border-top: 1px solid var(--color-divider);
 
    text-align: center;
 
    color: var(--color-label);
 
    font-size: 11px;
}
 
 
/* =====================================================
   TABLET
===================================================== */
 
@media (max-width: 1024px) {
 
    .cnsp-subject-hero {
        padding-left: 4%;
        padding-right: 4%;
    }
 
    .cnsp-hero-container {
        min-height: 430px;
    }
 
    .cnsp-hero-content {
        width: 70%;
    }
 
    .cnsp-subject-title-row h1 {
        font-size: 45px;
    }
 
    .cnsp-subject-icon {
        width: 65px;
        height: 65px;
        flex-basis: 65px;
    }
 
    .cnsp-hero-illustration {
        width: 290px;
        height: 250px;
        right: -15px;
    }
 
    .cnsp-hero-note {
        right: 10px;
        top: 70px;
        font-size: 16px;
    }
 
    .cnsp-units-section {
        padding-left: 4%;
        padding-right: 4%;
    }
 
    .cnsp-unit-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
 
    .cnsp-unit-decoration {
        display: none;
    }
 
}
 
 
/* =====================================================
   MOBILE
===================================================== */
 
@media (max-width: 767px) {
 
    .cnsp-subject-page {
        min-height: 100vh;
    }
 
 
    /* Background */
 
    .cnsp-bg-top-left {
        width: 230px;
        height: 220px;
 
        left: -140px;
        top: -100px;
    }
 
    .cnsp-bg-top-right {
        width: 230px;
        height: 220px;
 
        right: -130px;
        top: -120px;
    }
 
    .cnsp-bg-bottom-right {
        width: 300px;
        height: 250px;
 
        right: -170px;
        bottom: -150px;
    }
 
    .cnsp-bg-bottom-left {
        width: 280px;
        height: 220px;
 
        left: -170px;
        bottom: -130px;
    }
 
 
    .cnsp-dots {
        width: 90px;
        height: 100px;
 
        background-size: 17px 17px;
    }
 
    .cnsp-dots-left {
        top: 65px;
    }
 
    .cnsp-dots-right {
        top: 10px;
    }
 
    .cnsp-dots-bottom {
        display: none;
    }
 
 
    /* Hero */
 
    .cnsp-subject-hero {
        padding: 18px 20px 25px;
    }
 
 
    .cnsp-hero-container {
        width: 100%;
 
        min-height: auto;
 
        padding-top: 62px;
 
        display: flex;
        flex-direction: column;
 
        align-items: flex-start;
    }
 
 
    /* Back */
 
    .cnsp-back-btn {
        top: 0;
        left: 0;
 
        padding: 9px 15px;
 
        font-size: 12px;
    }
 
    .cnsp-back-btn span:first-child {
        font-size: 18px;
    }
 
 
    /* Hero content */
 
    .cnsp-hero-content {
        width: 100%;
        max-width: none;
    }
 
 
    .cnsp-subject-label {
        margin-bottom: 10px;
 
        font-size: 10px;
 
        letter-spacing: 2.5px;
    }
 
 
    .cnsp-subject-title-row {
        gap: 13px;
 
        align-items: flex-start;
    }
 
 
    .cnsp-subject-icon {
        width: 52px;
        height: 52px;
 
        flex: 0 0 52px;
 
        border-radius: 12px;
    }
 
 
    .cnsp-subject-title-row h1 {
        font-size: 30px;
 
        line-height: 1.06;
 
        letter-spacing: -1.2px;
    }
 
 
    .cnsp-title-line {
        width: 35px;
        height: 4px;
 
        margin: 15px 0 13px;
    }
 
 
    .cnsp-subject-description {
        font-size: 12px;
 
        line-height: 1.6;
    }
 
 
    /* Info */
 
    .cnsp-subject-info {
        width: 100%;
 
        margin-top: 20px;
 
        display: grid;
 
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
 
        gap: 6px;
    }
 
 
    .cnsp-info-item {
        min-width: 0;
 
        flex-direction: column;
 
        align-items: center;
 
        justify-content: center;
 
        gap: 6px;
 
        text-align: center;
    }
 
 
    .cnsp-info-icon {
        width: 38px;
        height: 38px;
 
        flex: 0 0 38px;
 
        border-radius: 10px;
 
        background: transparent;
 
        overflow: hidden;
    }
 
    .cnsp-info-icon img {
        width: 100%;
        height: 100%;
 
        object-fit: contain;
 
        display: block;
    }
 
    /* Keep Semester visually the same size as Course and Units */
    .cnsp-info-item:first-child .cnsp-info-icon img {
        transform: scale(1.70);
    }
 
 
 
    .cnsp-info-item span {
        font-size: 8px;
 
        margin-bottom: 2px;
    }
 
 
    .cnsp-info-item strong {
        font-size: 10px;
    }
 
 
    .cnsp-info-divider {
        display: none;
    }
 
 
    /* Illustration */
 
    .cnsp-hero-illustration {
        position: relative;
 
        right: auto;
        bottom: auto;
        display: none;
        width: 100%;
        height: 190px;
 
        margin-top: 15px;
    }
 
 
    .cnsp-hero-illustration img {
        width: 240px;
        height: 190px;
    }
 
 
    .cnsp-hero-note {
        display: none;
    }
 
 
    /* Units */
 
    .cnsp-units-section {
        padding: 25px 20px 55px;
    }
 
 
    .cnsp-units-heading {
        display: block;
 
        margin-bottom: 22px;
    }
 
 
    .cnsp-section-label {
        margin-bottom: 8px;
 
        font-size: 9px;
 
        letter-spacing: 2px;
    }
 
 
    .cnsp-units-heading h2 {
        font-size: 27px;
 
        line-height: 1.12;
 
        letter-spacing: -1px;
    }
 
 
    .cnsp-units-heading-note {
        width: 100%;
 
        margin-top: 15px;
    }
 
 
    .cnsp-units-heading-note > span {
        width: 30px;
        height: 3px;
 
        margin-bottom: 7px;
    }
 
 
    .cnsp-units-heading-note p {
        font-size: 11px;
 
        line-height: 1.5;
    }
 
 
    /* Grid */
 
    .cnsp-unit-grid {
        grid-template-columns: 1fr;
 
        gap: 13px;
    }
 
 
    /* Cards */
 
    .cnsp-unit-card {
        min-height: 0;
 
        padding: 17px;
 
        border-radius: 15px;
    }
 
 
    .cnsp-unit-icon {
        width: 55px;
        height: 55px;
 
        margin-bottom: 10px;
 
        border-radius: 13px;
    }
 
 
    .cnsp-unit-number {
        margin-bottom: 7px;
 
        font-size: 10px;
 
        letter-spacing: 1.7px;
    }
 
 
    .cnsp-unit-card h3 {
        margin-bottom: 7px;
 
        font-size: 17px;
    }
 
 
    .cnsp-unit-card > p {
        font-size: 11px;
 
        line-height: 1.55;
    }
 
 
    .cnsp-unit-meta {
        gap: 7px;
 
        margin-top: 18px;
        margin-bottom: 11px;
    }
 
 
    .cnsp-unit-meta span {
        padding: 7px 9px;
 
        font-size: 8px;
    }
 
 
    .cnsp-unit-btn {
        height: 42px;
 
        border-radius: 9px;
 
        font-size: 11px;
    }
 
 
    .cnsp-unit-btn span {
        font-size: 16px;
    }
 
 
    /* Hide decorative unit card */
 
    .cnsp-unit-decoration {
        display: none;
    }
 
 
    /* Footer */
 
    .cnsp-outro-container {
        padding: 28px 16px 16px;
    }
 
    .cnsp-outro-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
 
        gap: 8px;
    }
 
    .cnsp-outro-card {
        padding: 10px 6px;
 
        border-radius: 12px;
    }
 
    .cnsp-stat-icon {
        width: 28px;
        height: 28px;
 
        margin-bottom: 6px;
 
        border-radius: 8px;
 
        font-size: 12px;
    }
 
    .cnsp-stat-value {
        font-size: 15px;
    }
 
    .cnsp-stat-label {
        margin-top: 2px;
 
        font-size: 7.5px;
 
        letter-spacing: 0.2px;
    }
 
    .cnsp-footer-bottom {
        margin-top: 16px;
 
        font-size: 10px;
    }
 
}
 
 
/* =====================================================
   VERY SMALL PHONES
===================================================== */
 
@media (max-width: 380px) {
 
    .cnsp-subject-hero {
        padding-left: 15px;
        padding-right: 15px;
    }
 
    .cnsp-units-section {
        padding-left: 15px;
        padding-right: 15px;
    }
 
 
    .cnsp-subject-title-row h1 {
        font-size: 27px;
    }
 
 
    .cnsp-subject-icon {
        width: 48px;
        height: 48px;
 
        flex-basis: 48px;
    }
 
 
    .cnsp-subject-description {
        font-size: 11px;
    }
 
 
    .cnsp-info-item strong {
        font-size: 9px;
    }
 
 
    .cnsp-units-heading h2 {
        font-size: 25px;
    }
 
 
    .cnsp-unit-card {
        padding: 15px;
    }
 
}
/* =====================================================
   BREADCRUMB (SEO)
===================================================== */
 
.cnsp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
 
    gap: 6px;
 
    margin-bottom: 14px;
 
    font-size: 12px;
    font-weight: 500;
 
    color: var(--color-label);
}
 
.cnsp-breadcrumb a {
    color: var(--color-label);
 
    transition: color var(--transition-fast);
}
 
.cnsp-breadcrumb a:hover {
    color: var(--color-primary);
}
 
.cnsp-breadcrumb [aria-current="page"] {
    color: var(--color-primary-dark);
    font-weight: 600;
}
 
.cnsp-breadcrumb-sep {
    color: var(--color-divider);
}
 
@media (max-width: 767px) {
    .cnsp-breadcrumb {
        font-size: 11px;
        margin-bottom: 10px;
    }
}
 
 
/* =====================================================
   INTRO / OVERVIEW SECTION (SEO)
===================================================== */
 
.cnsp-intro-section {
    position: relative;
    z-index: 2;
 
    width: 100%;
 
    padding: 10px 5% 10px;
}
 
.cnsp-intro-container {
    width: 100%;
    max-width: 1000px;
 
    margin: 0 auto;
 
    padding: 26px 30px;
 
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
 
    background: var(--color-primary-softer);
}
 
.cnsp-intro-container h2 {
    margin-bottom: 14px;
 
    color: var(--color-ink);
 
    font-size: clamp(20px, 2.2vw, 26px);
 
    letter-spacing: -0.6px;
}
 
.cnsp-intro-container p {
    margin-bottom: 12px;
 
    color: var(--color-body);
 
    font-size: 14px;
 
    line-height: 1.7;
}
 
.cnsp-intro-container p:last-child {
    margin-bottom: 0;
}
 
.cnsp-intro-container strong {
    color: var(--color-primary-dark);
    font-weight: 600;
}
 
@media (max-width: 767px) {
 
    .cnsp-intro-section {
        padding: 5px 20px 5px;
    }
 
    .cnsp-intro-container {
        padding: 20px 18px;
    }
 
    .cnsp-intro-container p {
        font-size: 12.5px;
        line-height: 1.65;
    }
 
}
 
 
/* =====================================================
   FAQ SECTION (SEO)
===================================================== */
 
.cnsp-faq-section {
    position: relative;
    z-index: 2;
 
    width: 100%;
 
    padding: 10px 5% 60px;
}
 
.cnsp-faq-container {
    width: 100%;
    max-width: 1250px;
 
    margin: 0 auto;
}
 
.cnsp-faq-list {
    display: flex;
    flex-direction: column;
 
    gap: 12px;
 
    max-width: 820px;
}
 
.cnsp-faq-item {
    padding: 16px 20px;
 
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
 
    background: var(--color-surface);
 
    box-shadow: var(--shadow-xs);
 
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}
 
.cnsp-faq-item:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-sm);
}
 
.cnsp-faq-item summary {
    cursor: pointer;
 
    list-style: none;
 
    display: flex;
    align-items: center;
    justify-content: space-between;
 
    color: var(--color-ink-soft);
 
    font-size: 14.5px;
    font-weight: 600;
 
    line-height: 1.4;
}
 
.cnsp-faq-item summary::-webkit-details-marker {
    display: none;
}
 
.cnsp-faq-item summary::after {
    content: "+";
 
    flex-shrink: 0;
 
    margin-left: 14px;
 
    width: 22px;
    height: 22px;
 
    display: flex;
    align-items: center;
    justify-content: center;
 
    border-radius: 50%;
 
    background: var(--color-primary-soft);
 
    color: var(--color-primary-dark);
 
    font-size: 15px;
    font-weight: 700;
 
    transition: transform var(--transition-fast);
}
 
.cnsp-faq-item[open] summary::after {
    transform: rotate(45deg);
}
 
.cnsp-faq-item p {
    margin-top: 12px;
 
    color: var(--color-body);
 
    font-size: 13px;
 
    line-height: 1.65;
}
 
@media (max-width: 767px) {
 
    .cnsp-faq-section {
        padding: 5px 20px 45px;
    }
 
    .cnsp-faq-item {
        padding: 13px 15px;
    }
 
    .cnsp-faq-item summary {
        font-size: 13px;
    }
 
    .cnsp-faq-item p {
        font-size: 12px;
    }
 
}
 /* =====================================================
   DETAILS SECTION (SEO CONTENT)
===================================================== */
 
.cnsp-details-section {
    position: relative;
    z-index: 2;
 
    width: 100%;
 
    padding: 10px 5% 40px;
}
 
.cnsp-details-container {
    width: 100%;
    max-width: 1250px;
 
    margin: 0 auto;
}
 
.cnsp-details-grid {
    display: grid;
 
    grid-template-columns: repeat(2, minmax(0, 1fr));
 
    gap: 20px;
}
 
.cnsp-details-card {
    padding: 22px 24px;
 
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
 
    background: var(--color-surface);
 
    box-shadow: var(--shadow-xs);
 
    transition:
        transform var(--transition-med),
        box-shadow var(--transition-med),
        border-color var(--transition-med);
}
 
.cnsp-details-card:hover {
    transform: translateY(-5px);
 
    border-color: var(--color-border-hover);
 
    box-shadow: var(--shadow-sm);
}
 
.cnsp-details-card h3 {
    margin-bottom: 10px;
 
    color: var(--color-ink);
 
    font-size: 16.5px;
    font-weight: 600;
 
    line-height: 1.35;
 
    letter-spacing: -0.3px;
}
 
.cnsp-details-card p {
    color: var(--color-body);
 
    font-size: 13px;
 
    line-height: 1.7;
}
 
.cnsp-details-card strong {
    color: var(--color-primary-dark);
    font-weight: 600;
}
 
@media (max-width: 1024px) {
 
    .cnsp-details-grid {
        grid-template-columns: 1fr;
    }
 
}
 
@media (max-width: 767px) {
 
    .cnsp-details-section {
        padding: 5px 20px 30px;
    }
 
    .cnsp-details-grid {
        gap: 13px;
    }
 
    .cnsp-details-card {
        padding: 17px 16px;
    }
 
    .cnsp-details-card h3 {
        font-size: 15px;
    }
 
    .cnsp-details-card p {
        font-size: 12px;
        line-height: 1.65;
    }
 
}
#error-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    display: none;
    z-index: 9999;
}
@media (max-width: 767px) {

    #error-message {
        position: fixed;

        bottom: 20px;
        left: 50%;

        transform: translateX(-50%);

        width: calc(100% - 120px);
        max-width: 350px;

        padding: 11px 16px;

        font-size: 14px;
        line-height: 1.4;

        text-align: center;

        border-radius: 8px;

        background: #333;
        color: white;

        display: none;

        z-index: 9999;

        box-sizing: border-box;
    }

}