/* Ported from neoyug-widgets' content-grid.css so /blog-main/ keeps the
   exact look it had as an Elementor widget. Every rule is scoped under
   .nybb-index so the two can never collide if both ever load. */
/* Content Grid Widget Styles */
.nybb-index .content-grid-wrapper{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Header Section */
.nybb-index .content-grid__header{
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Filters */
.nybb-index .content-grid__filters{
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    flex: 1;
}

.nybb-index .content-grid__filter-btn{
    background: #ffffff;
    border-radius: 40px;
    border: 1px solid rgba(141, 34, 195, 0.50);
    padding: 8px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 40px;
    color: #8d22c3;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nybb-index .content-grid__filter-btn:hover{
    background: rgba(141, 34, 195, 0.1);
}

.nybb-index .content-grid__filter-btn.active{
    background: #8d22c3;
    border-color: transparent;
    color: #ffffff;
}

/* Search Box */
.nybb-index .content-grid__search{
    background: rgba(21, 25, 44, 0.02);
    border-radius: 48px;
    border: 1px solid rgba(21, 25, 44, 0.20);
    padding: 16px 20px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    width: 274px;
    height: 40px;
    position: relative;
}

.nybb-index .content-grid__search-input{
    color: rgba(21, 25, 44, 0.50);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
}

.nybb-index .content-grid__search-input::placeholder{
    color: rgba(21, 25, 44, 0.50);
}

.nybb-index .content-grid__search-icon{
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: rgba(21, 25, 44, 0.50);
}

/* Content Grid */
.nybb-index .content-grid__items{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.nybb-index .content-grid__card{
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nybb-index .content-grid__card.hidden{
    display: none;
}

.nybb-index .content-grid__link{
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.nybb-index .content-grid__thumbnail{
    border-radius: 8px;
    width: 100%;
    height: 251px;
    position: relative;
    overflow: hidden;
}

.nybb-index .content-grid__image{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nybb-index .content-grid__card:hover .content-grid__image{
    transform: scale(1.05);
}

.nybb-index .content-grid__play-button{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.nybb-index .content-grid__card:hover .content-grid__play-button{
    transform: translate(-50%, -50%) scale(1.1);
}

.nybb-index .content-grid__category{
    background: rgba(255, 255, 255, 0.20);
    border-radius: 10px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 12px;
    top: 12px;
    backdrop-filter: blur(20px);
    color: #ffffff;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    line-height: 24px;
    font-weight: 400;
}

.nybb-index .content-grid__content{
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.nybb-index .content-grid__title{
    color: #15192c;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: normal;
    font-weight: 500;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
}

/* Pagination */
.nybb-index .content-grid__pagination{
    padding: 10px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.nybb-index .content-grid__pagination-btn{
    border-radius: 6px;
    border: 1px solid #8a8897;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #8a8897;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nybb-index .content-grid__pagination-btn:hover:not(:disabled){
    background: rgba(141, 34, 195, 0.1);
    border-color: #8d22c3;
    color: #8d22c3;
}

.nybb-index .content-grid__pagination-btn:disabled{
    opacity: 0.5;
    cursor: not-allowed;
}

.nybb-index .content-grid__pagination-btn.active{
    background: #8d22c3;
    border-color: #8d22c3;
    color: #f4e9f9;
}

.nybb-index .content-grid__pagination-info{
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.content-grid__pagination-current,
.nybb-index .content-grid__pagination-total{
    border-radius: 6px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8897;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.nybb-index .content-grid__pagination-current{
    background: #8d22c3;
    color: #f4e9f9;
}

.nybb-index .content-grid__pagination-total{
    border: 1px solid #8d22c3;
    color: #8d22c3;
}

.nybb-index .content-grid__pagination-separator{
    color: #8a8897;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nybb-index .content-grid__items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nybb-index .content-grid__header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .nybb-index .content-grid__filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .nybb-index .content-grid__filter-btn {
        flex-shrink: 0;
    }

    .nybb-index .content-grid__search {
        width: 100%;
    }

    .nybb-index .content-grid__items {
        grid-template-columns: 1fr;
    }

    .nybb-index .content-grid__thumbnail {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .nybb-index .content-grid__title {
        font-size: 16px;
    }

    .nybb-index .content-grid__thumbnail {
        height: 180px;
    }

    .nybb-index .content-grid__play-button {
        width: 56px;
        height: 56px;
    }

    .nybb-index .content-grid__play-button svg {
        width: 56px;
        height: 56px;
    }
}


/* Elementor set box-sizing:border-box globally, so the widget's rules could
   safely mix width:100% with padding. A bare template inherits no such rule:
   without this the search field computed 400px inside a 358px column and hung
   off the right edge on a phone. */
.nybb-index,
.nybb-index *,
.nybb-index *::before,
.nybb-index *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------
   Page chrome that the Elementor page used to supply.
   The widget lived inside an .e-con-boxed container, so it never had to
   set its own width or gutter: dropping it into a bare template ran the
   grid edge to edge at 1425px. 1200px is what every other page uses.
   ------------------------------------------------------------------ */
.nybb-index {
	/* Wider than the 1200px boxed pages: the site header runs nearer the edges
	   than an Elementor container does, and at 1200 the grid sat ~90px inside it. */
	max-width: 1320px;
	margin: 0 auto;
	/* The header is fixed, and neoyug-header-map offsets the page by padding
	   .content-area -- a class this template does not render, so <main> started
	   at top:0 and the h1 ran into the logo. Same variable, applied here. */
	padding: calc(var(--nyhs-h, 101px) + 36px) 14px 72px;
}

/* A listing heading, not a hero: the theme's h1 came out at 84px here. */
/* Matches the weight and tracking of .nyc-sec-title, the section heading the
   homepage rails use, in the site's ink colour. The theme was giving this 800
   weight, pure black and -2.16px tracking, which read as a different site. */
.nybb-index .nybb-index__title {
	font-weight: 600;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.16;
	letter-spacing: 0.3px;
	color: #15192c;
	margin: 0 0 30px;
}


.nybb-index .nybb-index__empty {
	padding: 48px 0;
	color: #5b5670;
}

.nybb-index .nybb-index__more {
	display: flex;
	justify-content: center;
	margin-top: 44px;
}

.nybb-index .nybb-index__more-btn {
	display: inline-block;
	background: #fff;
	border: 1px solid rgba(141, 34, 195, 0.5);
	border-radius: 40px;
	padding: 12px 30px;
	font-weight: 600;
	color: #8d22c3;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}
.nybb-index .nybb-index__more-btn:hover,
.nybb-index .nybb-index__more-btn:focus {
	background: #8d22c3;
	color: #fff;
}
.nybb-index .nybb-index__more-btn[aria-busy="true"] {
	opacity: 0.6;
	pointer-events: none;
}

@media (max-width: 768px) {
	.nybb-index {
		padding: 28px 16px 56px;
	}
	.nybb-index .nybb-index__title {
		margin-bottom: 20px;
	}
}

/* The icon is the widget's own 24px SVG; the submit button around it exists
   only so the form works without JavaScript, so it must add nothing visual. */
.nybb-index .nybb-index__search-submit {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	line-height: 0;
	color: rgba(21, 25, 44, 0.5);
	cursor: pointer;
	order: 2;
	flex-shrink: 0;
}
.nybb-index .nybb-index__search-submit:focus-visible {
	outline: 2px solid #8d22c3;
	outline-offset: 3px;
	border-radius: 4px;
}

/* The pill strip is a nowrap horizontal scroller. As a flex item its automatic
   minimum size is its content, so with three pills it grew to 384px inside a
   358px column and scrolled the whole PAGE sideways instead of scrolling
   itself. min-width:0 lets it shrink and keep its own scroll. */
@media (max-width: 768px) {
	.nybb-index .content-grid__filters {
		min-width: 0;
		max-width: 100%;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
	}
	.nybb-index .content-grid__filters::-webkit-scrollbar {
		display: none;
	}
}

/* The pills and the load-more are anchors now, not buttons, so the theme's
   link underline applied to them in every state. */
.nybb-index .content-grid__filter-btn,
.nybb-index .content-grid__filter-btn:hover,
.nybb-index .content-grid__filter-btn:focus,
.nybb-index .content-grid__link,
.nybb-index .content-grid__link:hover,
.nybb-index .content-grid__link:focus,
.nybb-index .nybb-index__more-btn,
.nybb-index .nybb-index__more-btn:hover,
.nybb-index .nybb-index__more-btn:focus {
	text-decoration: none;
}

@media (max-width: 768px) {
	.nybb-index {
		padding: calc(var(--nyhs-h, 101px) + 20px) 12px 56px;
	}
}

/* ------------------------------------------------------------------
   Podcast list layout.
   One wide row per episode instead of a three-up grid: people choose a
   podcast on runtime and subject, which a grid of cropped titles cannot
   carry. Geometry follows the content_grid widget's own podcast mode so
   the two read identically.
   ------------------------------------------------------------------ */
.nybb-index .content-grid__items[data-layout="podcast-list"] {
	display: flex;
	flex-direction: column;
	gap: 0 !important;
}
.nybb-index .content-grid__items[data-layout="podcast-list"] .content-grid__card {
	flex-direction: row;
	gap: 24px;
	align-items: flex-start;
	padding: 24px 0;
	border-bottom: 1px solid #F4E9F9;
	border-radius: 0 !important;
}
.nybb-index .content-grid__items[data-layout="podcast-list"] .content-grid__card:last-child {
	border-bottom: 0;
}
.nybb-index .content-grid__items[data-layout="podcast-list"] .content-grid__link {
	flex-direction: row;
	gap: 24px;
	align-items: center;
}
.nybb-index .content-grid__items[data-layout="podcast-list"] .content-grid__thumbnail {
	flex-shrink: 0;
	width: 429px;
	height: 267px;
	border-radius: 8px;
}
.nybb-index .content-grid__items[data-layout="podcast-list"] .content-grid__content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 4px;
}
.nybb-index .content-grid__items[data-layout="podcast-list"] .content-grid__title {
	-webkit-line-clamp: unset;
	display: block;
	overflow: visible;
	font-size: 24px;
	line-height: 1.35;
	letter-spacing: -0.02em;
	font-weight: 500;
	margin: 0;
}
.nybb-index .nybb-pod__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: #8a8598;
}
.nybb-index .nybb-pod__dur {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #8d22c3;
	font-weight: 500;
}
.nybb-index .content-grid__excerpt {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #5b5670;
	max-width: 62ch;
}
.nybb-index .content-grid__podcast-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: 4px;
}
.nybb-index .content-grid__btn-watch {
	background: #8d22c3;
	border-radius: 40px;
	border: 1px solid transparent;
	padding: 8px;
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	width: 150px;
	height: 40px;
	color: #fff;
	font-size: 14px;
	font-weight: 400;
	text-decoration: none;
	box-sizing: border-box;
	transition: background 0.25s ease;
}
.nybb-index .content-grid__card:hover .content-grid__btn-watch {
	background: #7a1dab;
}

@media (max-width: 1024px) {
	.nybb-index .content-grid__items[data-layout="podcast-list"] .content-grid__thumbnail {
		width: 320px;
		height: 200px;
	}
}
@media (max-width: 768px) {
	.nybb-index .content-grid__items[data-layout="podcast-list"] .content-grid__card,
	.nybb-index .content-grid__items[data-layout="podcast-list"] .content-grid__link {
		flex-direction: column;
		align-items: stretch;
	}
	.nybb-index .content-grid__items[data-layout="podcast-list"] .content-grid__thumbnail {
		width: 100%;
		height: 220px;
	}
	.nybb-index .content-grid__items[data-layout="podcast-list"] .content-grid__title {
		font-size: 20px;
	}
}
