/**
 * BSC Display Monetization Data — front-end styles (loaded only with shortcode).
 */

.bsc-dmd {
	box-sizing: border-box;
	max-width: 100%;
	margin: 1.5rem 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: inherit;
}

.bsc-dmd .bsc-dmd__table-wrap {
	margin-top: 40px;
}

table.tbl-comparision.bsc-programs-table {	
	margin: 0;
}

.bsc-dmd *,
.bsc-dmd *::before,
.bsc-dmd *::after {
	box-sizing: inherit;
}

.bsc-dmd__section {
	margin-bottom: 2rem;
}

.bsc-dmd__section:last-child {
	margin-bottom: 0;
}

.bsc-dmd__heading {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
	font-weight: 600;
}

.bsc-dmd__empty {
	margin: 0;
	padding: 0.75rem 1rem;
	background: rgba(0, 0, 0, 0.04);
	border-radius: 4px;
}

.bsc-dmd__filter-empty {
	margin: 0.75rem 0 0;
	padding: 0.75rem 1rem;
	text-align: center;
	color: #424242;
	font-size: 0.9375rem;
	background: rgba(0, 0, 0, 0.04);
	border-radius: 4px;
}

.bsc-dmd__table-wrap {
	overflow-x: auto;
	border: 1px solid rgba(0, 0, 0, 0.12);
	-webkit-overflow-scrolling: touch;
	font-size: 16px;
}

.bsc-dmd__table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.bsc-dmd__table th,
.bsc-dmd__table td {
	padding: 0.5rem 0.65rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tbl-comparision.bsc-programs-table tbody td[data-headtitle="Program"] a {
	text-transform: none !important;
}

.tbl-comparision.bsc-programs-table tbody td[data-headtitle="Program"] {
	text-align: left;
}

.tbl-comparision.bsc-programs-table tbody td[data-headtitle="State"] {
	padding: 15px 3px;
}

.bsc-dmd__table th {
	font-weight: 600;
	font-size: 0.8125em;
	white-space: nowrap;
	background: rgba(0, 0, 0, 0.03);
}

.bsc-dmd__table tbody tr:last-child td {
	border-bottom: none;
}

.bsc-dmd__table tbody tr:hover td {
	background: rgba(0, 0, 0, 0.02);
}

/* Program comparison layout (tbl-comparision / bsc-programs-table) */
.bsc-dmd.comparision-tbl {
	max-width: 100%;
}

.bsc-dmd.comparision-tbl .tbl-comparision {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.bsc-dmd.comparision-tbl .tbl-comparision th,
.bsc-dmd.comparision-tbl .tbl-comparision td {
	padding: 0.5rem 0.65rem;
	text-align: center;
	vertical-align: middle;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	font-size: 0.9375em;
}

.bsc-dmd.comparision-tbl .tbl-comparision th {
	font-weight: 700;
	font-size: 0.8125em;
	white-space: nowrap;
	background: #faa93c;
	color: #ffffff;
	vertical-align: top;
}

.bsc-dmd.comparision-tbl .tbl-comparision th.bsc-dmd__th--filter {
	white-space: normal;
}

.bsc-dmd.comparision-tbl .tbl-comparision th.bsc-dmd__th--filter button{
	padding: 0;
}

.bsc-dmd.comparision-tbl .tbl-comparision th.bsc-dmd__th--stacked {
	white-space: normal;
	text-align: center;
	line-height: 1.25;
}

table.tbl-comparision td:first-child {
	background-color: #f7f7f7;
    border-left: 0;
}

.bsc-dmd.comparision-tbl .tbl-comparision th.bsc-dmd__th--stacked .bsc-dmd__th-subline {
	display: block;
	font-size: 0.85em;
	font-weight: 600;
}

.bsc-dmd__th-label {
	margin-right: 0.25rem;
}

.bsc-dmd__filter-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	padding: 0;
	margin: 0 0 0 0.15rem;
	border: none;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	line-height: 1;
}

.bsc-dmd__filter-trigger:hover,
.bsc-dmd__filter-trigger:focus-visible {
	background: rgba(0, 0, 0, 0.04);
	/* outline: none; */
}

.bsc-dmd__filter-trigger--header:focus .bsc-dmd__filter-icon,
.bsc-dmd__filter-trigger--header:active .bsc-dmd__filter-icon {
    color: #000000;
}

.bsc-dmd__filter-trigger--active {
	color: #000000;
	background: rgba(26, 109, 204, 0.08);
}

.bsc-dmd__filter-icon {
	display: block;
	width: 16px;
	height: 16px;
}

/* Mobile: filter buttons above table (viewport max 980px); desktop uses column header funnels */
.bsc-dmd__filter-mobile {
	display: none;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
}

.bsc-dmd__filter-trigger--mobile-bar {
	flex: 1 1 calc(50% - 0.25rem);
	min-width: min(100%, 10em);
	padding: 9px 12px;
	margin: 0;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	border: 2px solid #faa93c;
	border-radius: 8px;
	background: #fff;
	color: #faa93c;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.bsc-dmd__filter-trigger--mobile-bar:hover,
.bsc-dmd__filter-trigger--mobile-bar:focus-visible {
	background: rgba(0, 172, 193, 0.12);
	outline: none;
}

.bsc-dmd__filter-trigger--mobile-bar.bsc-dmd__filter-trigger--active {
	color: #fff;
	background: #000000;
	border-color: #000000;
}

@media (max-width: 980px) {
	.bsc-dmd__filter-mobile {
		display: flex;
	}

	.bsc-dmd.comparision-tbl .tbl-comparision th.bsc-dmd__th--filter .bsc-dmd__filter-trigger--header {
		display: none;
	}
}

/* Filter modal */
.bsc-dmd__filter-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	font-size: 16px;
}

.bsc-dmd__filter-modal--open {
	display: block;
}

.bsc-dmd__filter-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.bsc-dmd__filter-modal-panel {
	--bsc-dmd-filter-accent: #000000;
	position: relative;
	z-index: 1;
	max-width: 24em;
	width: calc(100% - 2em);
	padding: 1.2em 1.5em 1.5em;
	background: #fff;
	border: 3px solid var(--bsc-dmd-filter-accent);
	border-radius: 18px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
	max-height: 70vh;
	display: flex;
	flex-direction: column;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.bsc-dmd__filter-modal-title {
	margin: 0 0 1em;
	padding-bottom: 0.85em;
	border-bottom: 2px solid var(--bsc-dmd-filter-accent, #000000);
	font-size: 1.0625em;
	font-weight: 600;
	text-align: center;
	color: #424242;
	letter-spacing: 0.01em;
}

.bsc-dmd__filter-modal-list {
	overflow-y: auto;
	flex: 1 1 auto;
	min-height: 0;
	margin: 0 0 1.25em;
	padding: 0.9em 1em;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	background: #fff;
}

.bsc-dmd__filter-option {
	display: flex;
	align-items: flex-start;
	gap: 9.6px;
	padding: 6.4px 0;
	cursor: pointer;
	font-size: 1em;
	line-height: 1.4;
	color: #424242;
	font-weight: 400;
}

.bsc-dmd__filter-option:first-child {
	padding-top: 0;
}

.bsc-dmd__filter-option:last-child {
	padding-bottom: 0;
}

.bsc-dmd__filter-option input {
	margin-top: 0.2rem;
	flex-shrink: 0;
	width: 1em;
	height: 1em;
	accent-color: var(--bsc-dmd-filter-accent, #000000);
	-webkit-appearance: auto;
}

.bsc-dmd__filter-modal-actions {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.75em;
	margin-top: auto;
	padding-top: 0;
	border-top: none;
}

.bsc-dmd__filter-btn {
	cursor: pointer;
	flex: 1 1 0;
	min-width: 0;
	padding: 0.65em 10px;
	font: inherit;
	font-size: 0.9375em;
	font-weight: 600;
	border-radius: 8px;
	border: none;
	line-height: 1em;
	transition: filter 0.15s ease;
}

.bsc-dmd__filter-btn--primary {
	background: #000000;
	color: #fff;
}

.bsc-dmd__filter-btn--primary:hover,
.bsc-dmd__filter-btn--primary:focus-visible {
	filter: brightness(1.06);
	outline: none;
}

.bsc-dmd__filter-clear.bsc-dmd__filter-btn {
	background: #fff;
	color: #424242;
	border: 2px solid #bdbdbd;
}

.bsc-dmd__filter-clear.bsc-dmd__filter-btn:hover,
.bsc-dmd__filter-clear.bsc-dmd__filter-btn:focus-visible {
	background: rgba(0, 0, 0, 0.04);
	outline: none;
}

.bsc-dmd__filter-close.bsc-dmd__filter-btn {
	background: #f44336;
	color: #fff;
}

.bsc-dmd__filter-close.bsc-dmd__filter-btn:hover,
.bsc-dmd__filter-close.bsc-dmd__filter-btn:focus-visible {
	filter: brightness(1.06);
	outline: none;
}

.bsc-dmd.comparision-tbl .tbl-comparision tbody tr:last-child td {
	border-bottom: none;
}

.bsc-dmd.comparision-tbl .tbl-comparision a {
	text-decoration: underline;
}

/* Program column: pill button (theme .np-request-info), tuned for table cells */
.bsc-dmd.comparision-tbl .tbl-comparision td a.np-request-info.bsc-dmd__program-btn {
	display: inline-block;
	margin: 5px 0;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	max-width: 100%;
	line-height: 1.3;
	color: #000000;
	width: 100%;
}

.bsc-dmd.comparision-tbl .tbl-comparision td a.np-request-info.bsc-dmd__program-btn:hover {
	color: #ffffff;
}

.bsc-dmd.comparision-tbl .tbl-comparision td .bsc-dmd__program-label {
	display: inline-block;
	line-height: 1.4;
	text-transform: none !important;
}

/* AJAX pagination */
.bsc-dmd__pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75em 1em;
	margin-top: 1em;
	padding: 0.5em 0;
}

.bsc-dmd__page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.25em;
	min-width: 0;
}

.bsc-dmd__page-ellipsis {
	display: inline-flex;
	align-items: center;
	padding: 0 0.15em;
	font-size: 0.875em;
	color: rgba(0, 0, 0, 0.45);
	user-select: none;
}

.bsc-dmd__page-num.bsc-dmd__page-num--current {
	font-weight: 600;
	border-color: rgba(0, 0, 0, 0.35);
	background: rgba(0, 0, 0, 0.06);
}

.bsc-dmd__page-btn {
	cursor: pointer;
	padding: 0.35em 0.85em;
	font: inherit;
	font-size: 0.875em;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	background: #fff;
	color: inherit;
}

.bsc-dmd__page-btn:hover:not(:disabled) {
	background: rgba(0, 0, 0, 0.04);
}

.bsc-dmd__page-btn:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.bsc-dmd__page-info {
	font-size: 0.875em;
	min-width: 8em;
	text-align: center;
}

.bsc-dmd--loading .bsc-dmd__tbody {
	opacity: 0.45;
	transition: opacity 0.15s ease;
}


/* table design */
table.bsc-programs-table.bsc-dmd-programs-table {
	table-layout: fixed
}

.bsc-dmd.comparision-tbl table.bsc-programs-table.bsc-dmd-programs-table th {
	font-size: 18px;
	width: 16%;
	padding: 13px 9px;
	text-align: center;
	word-break: break-word;
}

.bsc-dmd.comparision-tbl table.tbl-comparision.bsc-programs-table.bsc-dmd-programs-table th span {
	font-size: 18px;
	word-break: break-word;
}

table.tbl-comparision.bsc-programs-table tbody tr td {
    text-align: center;
    vertical-align: middle;
	word-break: break-word;
}

table.bsc-programs-table.bsc-dmd-programs-table .bsc-dmd__filter-trigger {
	display: inline-block;
	margin: -4.5px;
}

a.np-request-info {
    border: 2px solid #000000;
	color: #000000;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 10px;
    margin: 0 auto;
    display: inline-block;
    line-height: normal;
    font-weight: 600;
    font-family: inherit;
    margin-top: 4px;
    margin-left: 55px;
	transition: all .5s;
    -moz-transition: all .5s;
    -o-transition: all .5s;
    -webkit-transition: all .5s;
    -ms-transition: all .5s;
}

a.np-request-info:hover {
	background: #000000;
    color: #ffffff;
}

th[data-headtitle="Rank"]{
	width: 9% !important;
}
th[data-headtitle="Duration"]{
	width: 26% !important;
}

th[data-headtitle="State"] {
	width: 15% !important;
}

table.tbl-comparision .bsc-dmd__tbody td {
	padding: 15px 10px;
}

th[data-headtitle="Accreditation"]{
	width: 16% !important;
}

th[data-headtitle="Program"] {
	width: 30% !important;
}

[data-headtitle="Tuition (Yearly Rate)*"] {
	width: 14% !important;
}

@media (max-width: 991px) {
	
	table.bsc-programs-table.bsc-dmd-programs-table th{
		font-size: 13px;
		padding: 13px 12px;
		line-height: normal;
	}
	.bsc-dmd.comparision-tbl .tbl-comparision td{
		padding: 15px 3px;
		font-size: 13px;
	}
}

/* Responsive Table Card Layout (max-width: 768px) */
@media screen and (max-width: 768px) {
    /* 1. Reset table structure to blocks */
    table.tbl-comparision.bsc-programs-table,
    table.tbl-comparision.bsc-programs-table thead,
    table.tbl-comparision.bsc-programs-table tbody,
    table.tbl-comparision.bsc-programs-table td {
        display: block ;
        width: 100% !important;
    }

	table.tbl-comparision.bsc-programs-table tbody tr:not([style*="display: none"]) {
        display: block !important;
    }
    
	table.tbl-comparision.bsc-programs-table tbody tr[style*="display: none"] {
        display: none;
    }

    /* 2. Hide original header */
    table.tbl-comparision.bsc-programs-table thead {
        display: none;
    }

    /* 3. Style Row as a Card */
    table.tbl-comparision.bsc-programs-table tbody tr {
        overflow: hidden;
		border-bottom: 2px solid #faa93c;
    }

    /* 4. Style Cells as Two-Column Rows with Vertical Separator */
    table.tbl-comparision.bsc-programs-table tbody td {
        display: flex !important;
        padding: 10px 15px;
		align-items: center;
        border-bottom: 1px solid #eeeeee;
        min-height: 45px;
        text-align: left;
        justify-content: flex-start;
        color: #333;
        font-size: 14px !important;
    }

    
	table.tbl-comparision td:first-child {
		background-color: transparent;
	}

    /* 7. Column Labels Mapping */
    table.tbl-comparision.bsc-programs-table tbody td:nth-of-type(1)::before { content: "Rank"; }
    table.tbl-comparision.bsc-programs-table tbody td:nth-of-type(2)::before { content: "Program"; }
    table.tbl-comparision.bsc-programs-table tbody td:nth-of-type(3)::before { content: "Tuition (Total)"; }
    table.tbl-comparision.bsc-programs-table tbody td:nth-of-type(4)::before { content: "Tuition (Yearly Rate)*"; }
    table.tbl-comparision.bsc-programs-table tbody td:nth-of-type(5)::before { content: "Duration"; }
    table.tbl-comparision.bsc-programs-table tbody td:nth-of-type(6)::before { content: "Accreditation"; }
    table.tbl-comparision.bsc-programs-table tbody td:nth-of-type(7)::before { content: "State"; }

    .bsc-dmd.comparision-tbl .tbl-comparision tbody td {
		display: flex;
		
		/* 1. KEY FIX: REMOVE PADDING FROM TD */
		padding: 0 15px; 
		
		width: 100%;
		border-bottom: 1px solid #eeeeee;
	  }
	
	table.tbl-comparision.bsc-programs-table tbody td::before {
		display: flex;
		align-items: center !important; /* Vertically centers the label text */
        
        /* Ensures the background/separator still covers the full cell height */
        align-self: stretch !important; 
		width: 100%;
		max-width: 200px;
		border-right: 1px solid #e0e0e0;
		font-weight: 700;
		flex-shrink: 0;
		margin-right: 15px;
	  }

	  table.bsc-programs-table.bsc-dmd-programs-table tbody tr:nth-child(odd) {
		background-color: #f6f6f6;
	  }

	.bsc-dmd.comparision-tbl .tbl-comparision th,
	.bsc-dmd.comparision-tbl .tbl-comparision td {
		text-align: left;
	}
}

@media (max-width: 480px) {
	table.bsc-programs-table.bsc-dmd-programs-table tbody tr td::before {
		max-width: 100px;
	}
	table.bsc-programs-table.bsc-dmd-programs-table tbody tr td::after {
		left: 115px;
	}
}
