/* ==========================================================================
   Universal 2-Column Article & Knowledge Guide Layout + Institutional Sidebar
   ========================================================================== */

/* Layout Grid Container */
.article-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    color: rgb(38, 18, 68);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (max-width: 768px) {
    .article-container {
        padding: 0 16px;
    }
}

.article-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 36px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.article-main-col {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Institutional Sticky Sidebar */
.article-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid #ede4f5;
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 4px 20px rgba(109, 40, 217, 0.04);
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 8px 26px rgba(109, 40, 217, 0.08);
}

/* Widget Header */
.widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3ecfa;
}

.widget-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.widget-icon.fire {
    background: #fff1f2;
    color: #e11d48;
}

.widget-icon.purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.widget-header h3 {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e0e38;
    margin: 0;
    line-height: 1.25;
}

.widget-sub {
    font-size: 0.72rem;
    color: #8c7d9e;
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

/* IPO List Items */
.widget-ipo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.widget-ipo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #faf7fe;
    border: 1px solid #f0e6f8;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.widget-ipo-item:hover {
    background: #f4ecfb;
    border-color: #d8b4fe;
    transform: translateX(3px);
}

.widget-ipo-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.widget-ipo-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #24143d;
}

.widget-ipo-price {
    font-size: 0.75rem;
    color: #75658d;
    font-weight: 500;
}

.widget-status-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.badge-live {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.badge-upcoming {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}

.widget-footer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fbf8ff;
    border: 1px dashed #d8b4fe;
    border-radius: 10px;
    color: #6d28d9;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.widget-footer-link:hover {
    background: #f3e8ff;
}

/* Demat CTA Widget (Light Theme Standard) */
.demat-widget {
    background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 50%, #ede9fe 100%);
    color: #1f0a38;
    border: 1.5px solid #d8b4fe;
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.08);
}

.demat-top-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #d8b4fe;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #6d28d9;
    box-shadow: 0 2px 6px rgba(109, 40, 217, 0.06);
    margin-bottom: 12px;
}

.demat-top-pill i {
    color: #7c3aed;
}

.demat-widget h3 {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1f0a38;
    margin: 0 0 8px 0;
    line-height: 1.25;
}

.demat-widget p {
    font-size: 0.84rem;
    line-height: 1.55;
    color: #4b3869;
    margin: 0 0 14px 0;
}

.demat-benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    background: #ffffff;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e9d5ff;
    box-shadow: 0 2px 8px rgba(109, 40, 217, 0.04);
}

.benefit-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2e1065;
}

.benefit-row i {
    color: #059669;
    font-size: 0.82rem;
}

.sidebar-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.25);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-cta-btn:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #581c87 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.35);
    color: #ffffff;
}

.demat-footnote {
    margin-top: 10px;
    font-size: 0.72rem;
    color: #6b5b82;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.demat-footnote i {
    color: #7c3aed;
}

/* Telegram Widget */
.telegram-widget {
    background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #bae6fd;
    text-align: center;
}

.telegram-icon-box {
    width: 48px;
    height: 48px;
    background: #0284c7;
    color: #ffffff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin: 0 auto 12px auto;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.25);
}

.telegram-widget h3 {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0369a1;
    margin: 0 0 6px 0;
}

.telegram-widget p {
    font-size: 0.78rem;
    line-height: 1.5;
    color: #334155;
    margin: 0 0 14px 0;
}

.sidebar-tg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0284c7;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.84rem;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-tg-btn:hover {
    background: #0369a1;
    transform: translateY(-2px);
}

/* Tools Quick Links */
.tools-quick-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: #fbf8ff;
    border: 1px solid #f1e7fa;
    border-radius: 10px;
    color: #381f5c;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tool-link-item i {
    color: #7c3aed;
    font-size: 0.88rem;
    width: 16px;
    text-align: center;
}

.tool-link-item:hover {
    background: #f3e8ff;
    border-color: #c4b5fd;
    color: #5b21b6;
    transform: translateX(3px);
}

/* Responsive Layout */
@media (max-width: 992px) {
    .article-layout-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .article-sidebar {
        grid-template-columns: 1fr;
    }
}
