/* Facebook icon shortcode */

.header-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.header-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.header-social img {
	display: block;
	width: var(--club-fb-icon-size);
	height: var(--club-fb-icon-size);
	max-width: none;
}

/* Fixtures */

.club-fixtures-event-name {
	text-align: center;
	margin-bottom: 0.3em;
}

.club-fixtures-date {
	text-align: center;
	margin-top: 1.2em;
	margin-bottom: 0.5em;
}

.club-fixtures-type {
	margin-top: 0.6em;
	margin-bottom: 0.3em;
	padding: 4px 8px;
	background: #f0f0f0;
	border: 1px solid #ddd;
	font-size: 0.95em;
}

.club-fixtures-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	margin-bottom: 0.3em;
}

.club-fixtures-table th,
.club-fixtures-table td {
	padding: 4px 8px;
	border: none;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	vertical-align: top;
}

.club-fixtures-table thead th {
	background: #f7f7f7;
	font-weight: 600;
	text-align: left;
	border: 1px solid #ddd;
}

/* Team column borders — always remove inner edges regardless of alignment */
.club-fixtures-table th.club-fixture-team1,
.club-fixtures-table td.club-fixture-team1 {
	border-right: none !important;
}

.club-fixtures-table th.club-fixture-team2,
.club-fixtures-table td.club-fixture-team2 {
	border-left: none !important;
}

/* Team headers always centered */
.club-fixtures-table th.club-fixture-team1,
.club-fixtures-table th.club-fixture-team2 {
	text-align: center;
}

/* Inner (default): names hug the v */
.club-fixtures-align-inner td.club-fixture-team1 { text-align: right; }
.club-fixtures-align-inner td.club-fixture-team2 { text-align: left; }

/* Center: names centered within their columns */
.club-fixtures-align-center td.club-fixture-team1,
.club-fixtures-align-center td.club-fixture-team2 { text-align: center; }

/* Outer: names at the outer edges */
.club-fixtures-align-outer td.club-fixture-team1 { text-align: left; }
.club-fixtures-align-outer td.club-fixture-team2 { text-align: right; }

.club-fixtures-table th.club-fixture-v,
.club-fixtures-table td.club-fixture-v {
	width: 24px;
	text-align: center;
	padding-left: 4px;
	padding-right: 4px;
	border-left: none !important;
	border-right: none !important;
}

.club-fixtures-table td.club-fixture-v {
	vertical-align: middle;
	white-space: nowrap;
	border-bottom: 1px solid #ddd;
}

.club-fixtures-table tr.club-fixture-row-first td {
	border-top: 1px solid #ddd;
}

.club-fixtures-table tbody tr:last-child td {
	border-bottom: 1px solid #ddd;
}

.club-fixture-time {
	width: 115px;
	white-space: nowrap;
}

.club-fixture-score {
	width: 135px;
	white-space: nowrap;
}

.club-fixture-notification {
	margin: 1em 0;
}

/* Sponsors */

.club-sponsors-none {
	text-align: center;
}

.club-sponsors {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px 20px;
	align-items: start;
}

@media (max-width: 960px) {
	.club-sponsors {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {
	.club-sponsors {
		grid-template-columns: repeat(2, 1fr);
	}
}

.club-sponsor {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.club-sponsor-name-text {
	text-decoration: none !important;
}

.club-sponsor-name-link {
	text-decoration: none !important;
	position: relative;
	color: inherit;
	display: inline-block;
}

.club-sponsor-name-link::after {
	content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.club-sponsor-name-link:hover::after {
    width: 100%;
}

.club-sponsor-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--club-sponsor-logo-max-height, 80px);
	margin-top: 8px;
}

.club-sponsor-logo img {
	max-height: var(--club-sponsor-logo-max-height, 80px);
	max-width: 200px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.footer-section {
	color: var(--ast-global-color-4);
}

.footer-section h4 {
	color: #f2b705 !important;
}

.footer-section a {
	color: #f2b705 !important;
}

.footer-section a:hover {
	text-decoration: underline !important;
}

/* Policies */

.club-policies-description {
	margin-bottom: 1em;
}

.club-policies-list {
	list-style: disc;
	padding-left: 1.5em;
	margin: 0;
}

.club-policies-list li {
	margin-bottom: 0.4em;
}

.club-policy-description {
	color: #666;
	font-size: 0.95em;
	margin-top: 0.15em;
}

/* Terms and conditions on the function booking form */
#club-function-form fieldset legend{
	margin-bottom: 1rem !important;
}

.club-function-terms-text li + li {
    padding-top: 5px;
}