/*
Theme Name:   BeTheme Child - SIOD
Theme URI:    
Description:  Child theme for BeTheme, carrying over the SIOD Membership Extension plugin functionality (registration, login, membership sync, affiliate status, purchase restrictions, membership card).
Author:       Amber Shuey
Author URI:   
Template:     betheme
Version:      1.4.0
Text Domain:  betheme-child
*/

/* Child theme styles go here. Parent theme CSS is loaded first via functions.php. */

/* ---------------------------------------------------
   TABLE OF CONTENTS
   --------------------

   1. Company Single Page Style 
   2. Sponsor badges
   3. Directorist Overrides
   4. Sponsor list [sponsor_list] shortcode
   5. Product Display Card
   6. Course Product Display Card
   7. Industry News
   8. Community Rules
   9. Directorist Listings Overrides

--------------------------------------------------- */

.woocommerce-checkout p:has(#afreg_select_user_role) {
    display: none !important;
}


/* Company Single Page Style */

.company-template-default #Subheader {
	display: none;
}

.section.company {
		background-color: #E9ECF3;
		padding: 4em 0 3em 0;
	}
	.company-single {
		padding: 3%;
		background-color: white;
		border-radius: 6px;
		box-shadow: 3px 3px 5px 2px rgba(170,183,218,0.24);
		width: 100%;
	}

	.company-single header {
		margin-bottom: 20px;
	}

	.sponsor-badge {
		padding: 10px 30px;
		font-size: 32px;
		color: white;
	}

	/* Header */
	.company-header {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 24px;
		padding-bottom: 24px;
		border-bottom: 1px solid #E9ECF3;
	}

	.company-header__logo {
		flex: 0 0 auto;
	}

	.company-logo {
		max-width: 160px;
		max-height: 160px;
		width: auto;
		height: auto;
		object-fit: contain;
		border: 1px solid #E9ECF3;
		border-radius: 6px;
		padding: 8px;
		background-color: #FFFFFF;
	}

	.company-header__main {
		flex: 1 1 260px;
	}

	.company-header__main h1 {
		margin: 0 0 10px 0;
		color: #2B3A55;
	}

	/* Body */
	.company-body {
		display: flex;
		flex-wrap: wrap;
		gap: 40px;
		padding-top: 28px;
	}

	.company-body__main {
		flex: 1 1 60%;
		min-width: 260px;
		color: #3D4661;
		line-height: 1.7;
	}

	.company-categories__wrap {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 10px;
		margin-bottom: 20px;
	}

	.company-categories__label {
		font-size: 13px;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		color: #6B7488;
	}

	.company-categories {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.company-categories li {
		background-color: #E9ECF3;
		border-radius: 30px;
	}

	.company-categories li a {
		display: block;
		color: #2B3A55;
		font-size: 13px;
		font-weight: 600;
		padding: 5px 14px;
		text-decoration: none;
	}

	.company-categories li a:hover {
		background-color: #2B3A55;
		color: #FFFFFF;
		border-radius: 30px;
	}

	.company-body__sidebar {
		flex: 1 1 260px;
		max-width: 320px;
		background-color: #F5F7FB;
		border-radius: 6px;
		padding: 24px;
		align-self: flex-start;
	}

	.company-body__sidebar h2 {
		margin: 0 0 16px 0;
		font-size: 15px;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		color: #6B7488;
	}

	.company-contact {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.company-contact li {
		display: flex;
		gap: 10px;
		padding: 10px 0;
		border-bottom: 1px solid #E9ECF3;
		color: #3D4661;
		font-size: 15px;
	}

	.company-contact li:last-child {
		border-bottom: none;
	}

	.company-contact li .label {
		flex: 0 0 70px;
		font-weight: 600;
		color: #2B3A55;
	}

	.company-contact a {
		color: #4A5B8C;
		text-decoration: none;
	}

	.company-contact a:hover {
		text-decoration: underline;
	}

	.company-website-btn {
		display: inline-block;
		margin-top: 20px;
		padding: 10px 24px;
		background-color: #2B3A55;
		color: #FFFFFF;
		font-weight: 600;
		font-size: 14px;
		text-decoration: none;
		border-radius: 4px;
		text-align: center;
	}

	.company-website-btn:hover {
		background-color: #3D4E70;
		color: #FFFFFF;
	}

	.company-ad-graphic {
		margin-top: 20px;
	}

	.company-ad-graphic img {
		max-width: 100%;
		height: auto;
		border-radius: 6px;
	}

	@media (max-width: 640px) {
		.company-header {
			text-align: center;
			justify-content: center;
		}

		.company-body {
			flex-direction: column;
		}

		.company-body__sidebar {
			max-width: 100%;
		}

		.company-contact li {
			flex-direction: column;
			gap: 2px;
		}
	}


/* ---------------------------------------------------
   Sponsor badges — metallic gradients
--------------------------------------------------- */

.sponsor-badge {
	display: inline-block;
	padding: 6px 18px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	border-radius: 30px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.6),
		0 1px 3px rgba(0, 0, 0, 0.18);
}

.sponsor-badge--platinum, .sponser-badge--42 {
	background: linear-gradient(135deg,
		#E5E4E2 0%,
		#FFFFFF 25%,
		#C0C0C0 50%,
		#FFFFFF 75%,
		#B9B9B9 100%
	);
	color: #3D4661;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sponsor-badge--gold {
	background: linear-gradient(135deg,
		#BF953F 0%,
		#FCF6BA 25%,
		#B38728 50%,
		#FBF5B7 75%,
		#AA771C 100%
	);
	color: #5C3D05;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.sponsor-badge--silver {
	background: linear-gradient(135deg,
		#B4B7BC 0%,
		#FFFFFF 25%,
		#9CA0A6 50%,
		#FFFFFF 75%,
		#808488 100%
	);
	color: #2B3A55;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.sponsor-badge--bronze {
	background: linear-gradient(135deg,
		#CD7F32 0%,
		#E8B673 25%,
		#8C531B 50%,
		#E8B673 75%,
		#CD7F32 100%
	);
	color: #FFF8EF;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.sponsor-badge--inactive {
	background: #E9ECF3;
	color: #6B7488;
	box-shadow: none;
	border: none;
}

 /* ---------------------------------------------------
   Directorist Overrides
--------------------------------------------------- */

.directorist-badge.sponsor-badge {
	background-color: transparent !important;
	border-radius: 30px !important;
	border: 1px solid rgba(0, 0, 0, 0.08) !important;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.6),
		0 1px 3px rgba(0, 0, 0, 0.18) !important;
}

.directorist-badge.sponsor-badge--platinum {
	background: linear-gradient(135deg,
		#E5E4E2 0%,
		#FFFFFF 25%,
		#C0C0C0 50%,
		#FFFFFF 75%,
		#B9B9B9 100%
	) !important;
	color: #3D4661 !important;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.directorist-badge.sponsor-badge--gold {
	background: linear-gradient(135deg,
		#BF953F 0%,
		#FCF6BA 25%,
		#B38728 50%,
		#FBF5B7 75%,
		#AA771C 100%
	) !important;
	color: #5C3D05 !important;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

.directorist-badge.sponsor-badge--silver {
	background: linear-gradient(135deg,
		#B4B7BC 0%,
		#FFFFFF 25%,
		#9CA0A6 50%,
		#FFFFFF 75%,
		#808488 100%
	) !important;
	color: #2B3A55 !important;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.directorist-badge.sponsor-badge--bronze {
	background: linear-gradient(135deg,
		#CD7F32 0%,
		#E8B673 25%,
		#8C531B 50%,
		#E8B673 75%,
		#CD7F32 100%
	) !important;
	color: #FFF8EF !important;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35) !important;
}

/* ---------------------------------------------------
   Sponsor list [sponsor_list] shortcode
--------------------------------------------------- */

.sponsor-list {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.sponsor-tier-heading {
	margin: 0 0 20px 0;
	color: #2B3A55;
	border-bottom: 1px solid #E9ECF3;
	padding-bottom: 10px;
}

.sponsor-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
}

.sponsor-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	padding: 24px;
	background-color: #FFFFFF;
	border-radius: 6px;
	box-shadow: 3px 3px 5px 2px rgba(170,183,218,0.24);
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sponsor-card:hover {
	transform: translateY(-3px);
	box-shadow: 4px 6px 10px 2px rgba(170,183,218,0.35);
}

.sponsor-card__logo {
	width: 100%;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sponsor-card__logo img {
	max-width: 100%;
	max-height: 100px;
	object-fit: contain;
}

.sponsor-card__name {
	font-weight: 600;
	color: #2B3A55;
	font-size: 16px;
}

.sponsor-card .sponsor-badge {
	font-size: 12px;
	padding: 4px 14px;
}

@media (max-width: 480px) {
	.sponsor-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	}
}



/* ══════════════════════════════════════════════════════════════════
   Product Display Card
   ══════════════════════════════════════════════════════════════════ */

:root {
	--pcard-dark-blue: #00519a;
	--pcard-light-blue: #2196F3;
}

.pcard {
    background: #ffffff;
    padding: 32px;
    font-family: inherit;
    color: #0f172a;
    max-width: 480px;
}

.pcard-title {
    font-size: 1.9em;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.2em;
}

.pcard-description {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

.pcard-price-wrap {
    margin-bottom: 8px;
    min-height: 64px;
}

.pcard-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--pcard-light-blue);
    line-height: 1;
    transition: opacity 0.15s ease;
}

.pcard-price.is-updating {
    opacity: 0.35;
}

.pcard-price .woocommerce-Price-amount,
.pcard-price .woocommerce-Price-currencySymbol {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.pcard-price del {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.pcard-price del .woocommerce-Price-amount,
.pcard-price del .woocommerce-Price-currencySymbol {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.pcard-price ins {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--pcard-light-blue);
    text-decoration: none;
}

.pcard-price ins .woocommerce-Price-amount,
.pcard-price ins .woocommerce-Price-currencySymbol {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.pcard-savings {
    font-size: 13px;
    font-weight: 600;
    color: #16a34a;
    min-height: 20px;
    margin-top: 6px;
}

.pcard-terms-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-top: 22px;
    margin-bottom: 18px;
}

.pcard-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding-top: 10px;
    overflow: visible;
}

.pcard-term-btn {
    position: relative;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 18px;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    line-height: 1.2;
    transition:
        border-color 0.15s ease,
        background   0.15s ease,
        color        0.15s ease;
}

.pcard-term-btn:hover {
    border-color: var(--pcard-light-blue);
    color: var(--pcard-light-blue);
}

.pcard-term-btn.is-selected {
    border-color: var(--pcard-dark-blue);
    background: var(--pcard-dark-blue);
    color: #ffffff;
}

.pcard-sale-badge {
    position: absolute;
    top: -10px;
    left: -2px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    background: #dc2626;
    padding: 2px 5px;
    border-radius: 0;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

.pcard-term-btn.is-selected .pcard-sale-badge {
    background: #b91c1c;
}

.pcard-term-badge {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #16a34a;
    background: #dcfce7;
    padding: 2px 5px;
    border-radius: 0;
    white-space: nowrap;
}

.pcard-term-btn.is-selected .pcard-term-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

/* Hidden badges (toggled by JS when the renewal choice changes) */
.pcard-sale-badge[hidden],
.pcard-term-badge[hidden] {
    display: none !important;
}

/* ── Renewal choice (Auto-renew / One-time) ─────────────────────── */

.pcard-renewal-label {
    margin-top: 0;
    margin-bottom: 10px;
}

.pcard-renewal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.pcard-renew-btn {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #cbd5e1;
    border-radius: 0;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    text-align: left;
    line-height: 1.35;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background   0.15s ease;
}

.pcard-renew-btn:hover {
    border-color: var(--pcard-light-blue);
}

.pcard-renew-btn.is-selected {
    border-color: var(--pcard-dark-blue);
    background: #eff6ff;
}

.pcard-renew-btn.is-disabled,
.pcard-renew-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.pcard-renew-radio {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 2px solid #94a3b8;
    border-radius: 50%;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pcard-renew-btn.is-selected .pcard-renew-radio {
    border-color: var(--pcard-dark-blue);
    box-shadow: inset 0 0 0 3px #ffffff;
    background: var(--pcard-dark-blue);
}

.pcard-renew-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.pcard-renew-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.pcard-renew-tag {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #16a34a;
    background: #dcfce7;
    padding: 2px 6px;
    line-height: 1.4;
}

.pcard-renew-desc {
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
}

/* Fine print under the Sign Up button */
.pcard-renew-note {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
    text-align: center;
}

.pcard-feedback {
    font-size: 13px;
    min-height: 20px;
    text-align: center;
}

.pcard-feedback.is-error   { color: #dc2626; }
.pcard-feedback.is-success { color: #16a34a; }

/* ══════════════════════════════════════════════════════════════════
   Course Product Display Card
   ══════════════════════════════════════════════════════════════════ */
.nrta-mc-price-wrap {
	margin: 30px 0;
}

.nrta-mc-savings {
	font-size: 12px;
	font-style: italic;
}


/* ---------------------------------------------------
   Industry News — Single Page
--------------------------------------------------- */
article.industry-news .section-post-header {
	display: none;
}

/* ---------------------------------------------------
   Community Rules Popup
--------------------------------------------------- */
body:not(.needs-community-rules) #mfn-popup-template-126087 {
    display: none !important;
}

 /* ---------------------------------------------------
   Directorist Listings Overrides
--------------------------------------------------- */

 /* Hide Directorist Sidebar toggle */
.directorist-user-dashboard__toggle {
	display: none;
}

/* Hide Directorist sidebar nav */
.directorist-user-dashboard__nav {
	display: none!important;
}

/* Remove padding to line up content */
.directorist-container-fluid {
	padding: unset;
}