/* ============================================================
   INDEX SECTION - FINANCIAL TERMINAL STYLE (ALIGNED FIX)
   ============================================================ */
.index-section {
    padding: 60px 0;
    background-color: #fff; /* Clean White for contrast */
    border-top: 1px solid #eaedf0;
    border-bottom: 1px solid #eaedf0;
    font-family: var(--font-primary);
}

.index-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px; /* Divider Lines */
    background: #e0e0e0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.index-column {
    background-color: #fff;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
}

.column-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #8898aa;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.index-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    /* Gap kam kiya taake list lambi na lage */
    gap: 14px; 
}

.index-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
    /* IMPORTANT: Har row ki height fix kar di taake sab columns barabar dikhein */
    min-height: 38px; 
}

.index-list li a:hover {
    transform: translateX(3px);
}

/* --- Typography --- */
.item-name {
    font-size: 14px;
    font-weight: 600;
    
    /* 1. Default Color: Dark Grey (Professional lagta hai) */
    color: #172b4d; 
    
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 15px;
    max-width: 140px;
    transition: color 0.2s ease;
}

/* 2. Hover Color: Aapka Brand Pink */
.index-list li a:hover .item-name {
    color: #ff3366; /* Yeh change ho kar pink hoga */
}

/* 3. Global Link Reset for this section */
/* Agar item-name ke ilawa bhi kahin blue aa raha hai to yeh usay rokega */
.index-list li a {
    text-decoration: none;
    color: #172b4d; 
}

/* --- 1. Trending Badge (Green Pill) --- */
.data-badge.positive {
    background-color: #d1fae5;
    color: #065f46;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.arrow { font-size: 10px; }

/* --- 2. Cooling Text (Red Minimal) --- */
.data-text.negative {
    color: #dc2626; /* Darker Red for better visibility */
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --- 3. Calendar Box (COMPACT FIX) --- */
/* Size chota kiya hai taake alignment out na ho */
.calendar-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 38px;  /* Pehle 45px tha, ab chota hai */
    height: 38px; /* Height reduce ki */
    background: #fff;
    text-align: center;
    line-height: 1;
}
.cal-month {
    font-size: 8px; /* Font size adjust kiya */
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 2px;
}
.cal-date {
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
    font-family: var(--font-primary);
}
/* Today Highlight */
.calendar-box.today-highlight {
    background: #fffbeb;
    border-color: #f59e0b;
}
.calendar-box.today-highlight .cal-date { color: #d97706; }

/* --- 4. Newest (Pulse & Time) --- */
.ticker-box {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: block;
}
.pulse-dot.hot { background-color: #10b981; box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2); }
.pulse-dot.warm { background-color: #f59e0b; }
.pulse-dot.cold { background-color: #cbd5e1; }

.ticker-time {
    font-size: 12px;
    color: #64748b;
    font-family: var(--font-primary);
    font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .index-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        background: transparent;
        border: none;
    }
    .index-column {
        border: 1px solid #e0e0e0;
        margin-bottom: 20px;
        border-radius: 8px;
    }
}
@media (max-width: 768px) {
    .index-grid { grid-template-columns: 1fr; }
}