/* Pro India — page styles: Knowledge Hub.
   Copied verbatim from the approved HTML design. */

.filterbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.filterbar .chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filterbar .chip.active .ic { color: var(--mint); }

/* featured */
.feat { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px,4vw,40px); align-items: center; }
.feat-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/10; box-shadow: var(--sh); border: 1px solid var(--line); }
.feat-media img { width: 100%; height: 100%; object-fit: cover; }

/* article cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .22s var(--ease), box-shadow .22s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--line-2); }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--wash); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 16px; margin: 8px 0; line-height: 1.3; color: var(--ink); letter-spacing: -.01em; }
.post-tag { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--green-d); }
.post-meta { font-size: 12px; color: var(--tx-mute); margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 6px; }
.post-meta .ic { width: 14px; height: 14px; }

/* calculators */
.calc-card { display: flex; flex-direction: column; }
.calc-card .lnk { margin-top: 14px; }

/* news / webinars */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.news-item { display: flex; gap: 16px; align-items: flex-start; }
.news-item .nicon { width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.news-item .nicon .ic { width: 24px; height: 24px; }
.news-item h3 { font-size: 15px; margin-bottom: 3px; color: var(--ink); }
.news-item p { font-size: 12.5px; color: var(--tx-mute); margin: 0; }

/* events (merged) */
.ev-row { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
.ev-date { width: 84px; text-align: center; border-radius: var(--r); background: var(--wash); padding: 14px 10px; }
.ev-date .d { font-weight: 800; font-size: 26px; color: var(--ink); line-height: 1; }
.ev-date .m { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-d); margin-top: 4px; }
.ev-body h3 { font-size: 18px; margin-bottom: 6px; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--tx-soft); }
.ev-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ev-meta .ic { width: 15px; height: 15px; color: var(--green); }
.past-feat { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px,4vw,44px); align-items: center; }
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.gallery .g-item { border-radius: var(--r); aspect-ratio: 4/3; display: grid; place-items: center; color: rgba(255,255,255,.9); position: relative; overflow: hidden; }
.gallery .g-item .ic { width: 40px; height: 40px; }
.gallery .g-item span { position: absolute; bottom: 12px; left: 14px; font-size: 12.5px; font-weight: 600; color: #fff; }

@media (max-width: 900px) { .feat { grid-template-columns: 1fr; } .post-grid { grid-template-columns: 1fr 1fr; } .news-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .ev-row { grid-template-columns: auto 1fr; } .ev-row .btn { grid-column: 1 / -1; width: 100%; } .past-feat { grid-template-columns: 1fr; } .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
