

.vyakaran-header {
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), #0039ad);
    color: white;
    border-radius: 12px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.vyakaran-header .vyakaran-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.header-bg-chars text {
    font-family: 'Lora', serif;
    font-size: 150px;
    font-weight: bold;
    fill: rgba(255, 255, 255, 0.08);
    opacity: 0;
    animation: float-char 10s ease-in-out infinite alternate;
}

.header-bg-chars text:nth-child(1) { animation-delay: 0s; }
.header-bg-chars text:nth-child(2) { animation-delay: -8s; }
.header-bg-chars text:nth-child(3) { animation-delay: -6s; }
.header-bg-chars text:nth-child(4) { animation-delay: -4s; }
.header-bg-chars text:nth-child(5) { animation-delay: -2s; }
.header-bg-chars text:nth-child(6) { animation-delay: -9s; }
.header-bg-chars text:nth-child(7) { animation-delay: -5s; }


@keyframes float-char {
    0% { transform: translateY(20px) rotate(-10deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-20px) rotate(10deg); opacity: 0; }
}


.vyakaran-header h1 {
    font-family: 'Lora', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin: 0 0 1rem 0;
    color: white;
    position: relative;
    z-index: 1;
}

.vyakaran-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    color: #e0f2fe;
    position: relative;
    z-index: 1;
}

.topic-section {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 2.5rem;
    padding: 2rem;
    box-shadow: var(--card-shadow);
 
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    overflow: hidden;
}

.topic-svg {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin: 0 auto;
}

.topic-svg.large-svg {
    grid-column: 1 / -1;
    max-width: 500px;
}

.topic-content h2 {
    font-family: 'Lora', serif;
    font-size: 2rem;
    color: var(--accent-color);
    margin-top: 0;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.topic-content h3 {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-top: 2rem;
}

.topic-content p, .topic-content ul, .topic-content ol {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.topic-content ul, .topic-content ol {
    padding-left: 1.5rem;
}

.topic-content li {
    margin-bottom: 0.75rem;
}

.bhed-name {
    color: var(--logo); /* Red color for emphasis */
}

blockquote {
    background-color: var(--primary-bg);
    border-left: 5px solid var(--accent-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    font-style: italic;
}
blockquote p {
    margin: 0;
}
blockquote footer {
    font-style: normal;
    margin-top: 1rem;
    text-align: right;
    font-weight: bold;
    color: var(--text-primary);
}


/* FAQ Section */

@keyframes vyakaran-fadeIn {
    from {  transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* === Sidebar Links === */
.sidebar-link-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0.75rem;
}
.sidebar-link-list li a {
    display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 1rem;
    border: 1px solid var(--border-color); border-radius: 8px; text-decoration: none;
    color: var(--text-secondary); font-weight: 500;
    transition: all 0.2s ease;
}
.sidebar-link-list .link-text { display: flex; flex-direction: column; gap: 4px; }
.sidebar-link-list .post-date { font-size: 0.8rem; color: var(--muted-text-color); }
.sidebar-link-list li a:hover { background-color: var(--primary-bg); border-color: var(--accent-color); color: var(--accent-color); }
.sidebar-link-list .link-icon { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 2px; transition: transform 0.2s ease-in-out;}
.sidebar-link-list li a:hover .link-icon { transform: translateX(4px); }
.sidebar-link-list .link-icon svg { width: 100%; height: 100%; fill: currentColor; }

.sidebar-socials { display: flex; gap: 1rem; list-style: none; padding: 0; margin: 0; justify-content: flex-start; }
.sidebar-socials a svg { width: 24px; height: 24px; fill: var(--text-secondary); transition: fill 0.2s ease, transform 0.2s ease; }
.sidebar-socials a:hover svg { fill: var(--accent-color); transform: scale(1.1); }

.main-content .comments-wrapper { max-width: 100%; margin: 3rem 0 0 0; padding: 0; }

/* Scroll Animation */
[data-animate] {  transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* --- SVG ANIMATIONS --- */

/* #bhasha SVG */
.bhasha-bubble { fill: #e0f2fe; stroke: #38bdf8; stroke-width: 2.5; animation: vyakaran-bob 4s ease-in-out infinite; transform-origin: center; }
.bhasha-waves path { stroke: #0ea5e9; stroke-width: 2; fill: none; opacity: 0; animation: vyakaran-radiate 2.5s ease-out infinite; }
.bhasha-waves path:nth-child(2) { animation-delay: 0.3s; }
.bhasha-waves path:nth-child(3) { animation-delay: 0.6s; }
.bhasha-text { font-family: sans-serif; font-size: 14px; font-weight: bold; fill: #1e3a8a; }
.bhasha-underline { stroke: #1e3a8a; stroke-width: 2.5; stroke-dasharray: 70; stroke-dashoffset: 70; animation: vyakaran-draw 4s linear infinite 2s; }
.bhasha-pen { animation: vyakaran-write 4s ease-in-out infinite 2s; }
.bhasha-pen-body { fill: #fecaca; }
.bhasha-pen-nib { fill: #991b1b; }

@keyframes vyakaran-bob { 50% { transform: translateY(-5px); } }
@keyframes vyakaran-radiate {
    0% { opacity: 0; stroke-width: 0; transform: scale(0.5); }
    50% { opacity: 1; stroke-width: 2; }
    100% { opacity: 0; stroke-width: 0; transform: scale(1.5); }
}
@keyframes vyakaran-draw { 50%, 100% { stroke-dashoffset: 0; } }
@keyframes vyakaran-write {
    0%, 100% { transform: translate(45px, 135px) rotate(25deg); }
    50% { transform: translate(115px, 135px) rotate(25deg); }
}

/* #bhasha-ke-bhed (User's Provided) SVG styles */
.bhed-svg-provided {
    max-width: 100%;
    height: auto;
}
.bhed-svg-provided .ring { fill:none; stroke:#e5e7eb; stroke-width:2; transform-origin:240px 160px; animation:vyakaran-spin 18s linear infinite; }
.bhed-svg-provided .ring-2 { animation-duration:24s; animation-direction:reverse; }
.bhed-svg-provided .stem { stroke:#94a3b8; stroke-width:2; fill:none; stroke-linecap:round; }
.bhed-svg-provided .node { filter:url(#soft); }
.bhed-svg-provided .badge { rx:14; ry:14; }
.bhed-svg-provided .cap  { font-family:'Lora', ui-serif, serif; font-size:18px; fill:#ffffff; text-anchor:middle }
.bhed-svg-provided .lbl  { font-family:'Lora', ui-serif, serif; font-size:14px; fill:white; text-anchor:middle }
.bhed-svg-provided .breath { animation:vyakaran-breath 3s ease-in-out infinite; transform-origin:center; }
@keyframes vyakaran-spin { to { transform:rotate(360deg) } }
@keyframes vyakaran-breath { 0%,100%{ transform:scale(1) } 50%{ transform:scale(1.06) } }

/* #lipi-aur-vyakaran SVG */
.lipi-gear-large, .lipi-gear-small { fill: #d1d5db; }
.lipi-grammar-group:hover .lipi-gear-large, .lipi-grammar-group:hover .lipi-gear-small { fill: #9ca3af; }
.lipi-gear-large { transform-origin: 75px 65px; animation: vyakaran-spin 8s linear infinite; }
.lipi-gear-small { transform-origin: 120px 75px; animation: vyakaran-spin 6s linear infinite reverse; }
.lipi-check { stroke: #22c55e; stroke-width: 6; fill: none; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: vyakaran-draw-check 4s ease-out 2s infinite; }
.lipi-char { font-family: 'Lora', serif; font-size: 40px; fill: #4b5567; text-anchor: middle; animation: vyakaran-fade-char 4s linear 1s infinite; }
.lipi-pen { transform: translate(80px, 95px) rotate(30deg); animation: vyakaran-write-char 4s ease-in-out 1s infinite; }
.lipi-pen-body { fill: #f87171; }
.lipi-pen-nib { fill: #4b5567; }

@keyframes vyakaran-draw-check { 25%, 75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }
@keyframes vyakaran-fade-char { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes vyakaran-write-char {
    0% { transform: translate(80px, 95px) rotate(30deg); }
    50% { transform: translate(40px, 95px) rotate(30deg); }
    100% { transform: translate(80px, 95px) rotate(30deg); }
}
