/* ============================================================
   CLASS NOTES PAGES — SHARED STYLES
   Bihar Board Class 9 / 10 / 11 / 12
   Science Sangrah 2026
   ============================================================ */

/* ── Hindi font utility ── */
.devanagari {
    font-family: 'Noto Sans Devanagari', 'Mangal', 'Nirmala UI', sans-serif;
    line-height: 1.85;
}

/* ── Page background ── */
.class-notes-page {
    background: #fdfaf7;
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.cn-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #1a0a00 0%, #2d1200 50%, #3d1a00 100%);
    padding: 4.5rem 0 3.5rem;
    border-bottom: 1px solid rgba(255, 69, 0, 0.2);
}

.cn-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 69, 0, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 69, 0, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

.cn-hero-glow {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    animation: glowPulse 9s ease-in-out infinite;
}

.cn-hero-glow-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.35) 0%, transparent 70%);
    top: -180px;
    right: -80px;
}

.cn-hero-glow-2 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 130, 0, 0.22) 0%, transparent 70%);
    bottom: -100px;
    left: -60px;
    animation-delay: 4s;
    animation-direction: reverse;
}

.cn-hero-inner {
    position: relative;
    z-index: 1;
}

/* Class number big decorator */
.cn-class-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 69, 0, 0.15);
    border: 1px solid rgba(255, 69, 0, 0.4);
    color: #ff7a35;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.cn-class-number {
    font-size: clamp(5rem, 12vw, 9rem);
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.04);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.04em;
}

.cn-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    letter-spacing: -0.02em;
}

.cn-hero-title .accent {
    background: linear-gradient(90deg, #ff6a00, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cn-hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.85;
    max-width: 520px;
}

/* CTA Buttons */
.cn-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff4500, #ff7a00);
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 8px 24px rgba(255, 69, 0, 0.4);
}

.cn-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(255, 69, 0, 0.5);
}

.cn-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: border-color 0.25s, background 0.25s, transform 0.25s, color 0.25s;
}

.cn-btn-outline:hover {
    border-color: #ff6a00;
    background: rgba(255, 69, 0, 0.12);
    transform: translateY(-3px);
    color: #fff;
}

/* Stat chips */
.cn-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cn-stat-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
    animation: floatChip 7s ease-in-out infinite;
}

.cn-stat-chip:hover {
    border-color: rgba(255, 69, 0, 0.45);
    background: rgba(255, 69, 0, 0.09);
    transform: translateY(-4px);
}

.cn-stat-chip:nth-child(2) {
    animation-delay: 0.9s;
}

.cn-stat-chip:nth-child(3) {
    animation-delay: 1.7s;
}

.cn-stat-chip:nth-child(4) {
    animation-delay: 2.5s;
}

.cn-stat-label {
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(255, 255, 255, 0.42);
    font-weight: 600;
}

.cn-stat-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-top: 3px;
}

/* ════════════════════════════════════════
   SECTION GEMEINSAM
════════════════════════════════════════ */
.cn-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ff4500;
    background: #fff3ee;
    border: 1px solid #ffc5a8;
    padding: 0.28rem 0.85rem;
    border-radius: 999px;
}

.cn-section-title {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cn-section-desc {
    font-size: 0.97rem;
    color: #6b7280;
    line-height: 1.8;
}

/* ════════════════════════════════════════
   BLUEPRINT SECTION
════════════════════════════════════════ */
.cn-blueprint-section {
    background: #fff;
    padding: 4.5rem 0;
    border-bottom: 1px solid #f0e8e0;
}

.cn-blueprint-box {
    background: linear-gradient(135deg, #fff8f2, #fff3e8);
    border: 1px solid #fed7aa;
    border-radius: 24px;
    padding: 2rem 2.2rem;
    position: relative;
    overflow: hidden;
}

.cn-blueprint-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #ff4500, #ffb347);
    border-radius: 24px 0 0 24px;
}

.cn-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 1rem;
}

.cn-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cn-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff4500, #ff7a00);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.cn-step-text {
    font-size: 0.92rem;
    color: #374151;
    line-height: 1.65;
}

.cn-step-text .devanagari {
    font-size: 0.9rem;
}

/* ════════════════════════════════════════
   CARDS GRID
════════════════════════════════════════ */
.cn-content-section {
    background: #fdfaf7;
    padding: 4.5rem 0;
    border-bottom: 1px solid #f0e8e0;
}

.cn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 2.5rem;
}

@media (max-width: 767px) {
    .cn-grid {
        grid-template-columns: 1fr;
    }
}

.cn-card {
    background: #fff;
    border: 1px solid #f0e0d4;
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.cn-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff4500, #ffb347);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.cn-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(255, 69, 0, 0.11);
    border-color: rgba(255, 69, 0, 0.28);
}

.cn-card:hover::before {
    opacity: 1;
}

.cn-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff3ee, #ffe5d0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4500;
    margin-bottom: 0.85rem;
}

.cn-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.45rem;
    line-height: 1.4;
}

.cn-card-body {
    font-size: 0.87rem;
    color: #6b7280;
    line-height: 1.72;
}

/* ════════════════════════════════════════
   FAQ SECTION
════════════════════════════════════════ */
.cn-faq-section {
    background: #fff;
    padding: 4.5rem 0;
}

.cn-faq-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cn-faq-item {
    background: #fdfaf7;
    border: 1px solid #e8ddd4;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cn-faq-item[open] {
    border-color: rgba(255, 69, 0, 0.45);
    box-shadow: 0 6px 24px rgba(255, 69, 0, 0.09);
}

.cn-faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.2s ease;
}

.cn-faq-summary::-webkit-details-marker {
    display: none;
}

.cn-faq-summary:hover {
    background: #fff5f0;
}

.cn-faq-item[open] .cn-faq-summary {
    background: linear-gradient(90deg, #fff8f4, #fff);
}

.cn-faq-q {
    font-size: 0.92rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.5;
}

.cn-faq-q .devanagari {
    font-size: 0.89rem;
}

.cn-faq-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff3ee;
    border: 1px solid #ffd5bc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4500;
    font-size: 1.1rem;
    font-weight: 700;
    transition: transform 0.3s ease, background 0.3s ease;
    line-height: 1;
}

.cn-faq-item[open] .cn-faq-icon {
    transform: rotate(45deg);
    background: #ff4500;
    color: #fff;
    border-color: #ff4500;
}

.cn-faq-body {
    padding: 0 1.35rem 1.1rem;
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.8;
    border-top: 1px solid #f9ede5;
}

.cn-faq-body .devanagari {
    font-size: 0.86rem;
}

/* ════════════════════════════════════════
   INTERNAL LINKS NAV
════════════════════════════════════════ */
.cn-links-section {
    background: linear-gradient(135deg, #1a0a00 0%, #2d1200 100%);
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}

.cn-links-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 69, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 69, 0, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
}

.cn-links-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.4rem;
    position: relative;
    z-index: 1;
}

.cn-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    position: relative;
    z-index: 1;
}

@media (max-width: 640px) {
    .cn-links-grid {
        grid-template-columns: 1fr;
    }
}

.cn-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    font-weight: 600;
    transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s;
}

.cn-link-card:hover {
    border-color: rgba(255, 69, 0, 0.5);
    background: rgba(255, 69, 0, 0.1);
    color: #fff;
    transform: translateX(4px);
}

.cn-link-card i {
    flex-shrink: 0;
    color: #ff7a35;
}

/* ════════════════════════════════════════
   REVEAL ANIMATIONS
════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════════════
   KEYFRAMES
════════════════════════════════════════ */
@keyframes floatChip {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.06);
        opacity: 0.78;
    }
}