@charset "utf-8";
/* Modernised CSS for ecfaleague.co.uk (drop-in replacement) */

/* Optional fonts (safe to remove if you can't load external fonts) */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap");

:root{
	--bg: #eef2f7;
	--surface: #ffffff;
	--text: #18202b;
	--muted: #667085;

	--primary: #1a3a6c; /* ECFA-ish blue */
	--accent: #c8432b;  /* warm red accent */

	--border: rgba(15, 23, 42, 0.10);
	--shadow: 0 10px 30px rgba(15, 23, 42, 0.12);

	--radius-lg: 20px;
	--radius-md: 14px;
	--radius-sm: 10px;
}

*{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
	min-height: 100vh;
	margin: 0;
	padding: 0;
	font-family: Roboto, Arial, Helvetica, sans-serif;
	color: var(--text);
	background: linear-gradient(135deg, #e8edf5 0%, #f5f7fb 100%);
}

/* Links */
a{ color: var(--primary); text-decoration: none; }
a:hover{ text-decoration: underline; }

/* Legacy helper */
.clearBoth{ clear: both; }

/* Layout container */
#container{
	width: min(1100px, 92vw);
	margin: 36px auto 24px;
	background: var(--surface);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	overflow: hidden;
}

/* Old wrapper had borders; we remove the “boxed 2009” look */
#white_back{
	background: transparent;
	width: auto;
	border: 0;
	padding-bottom: 28px;
}

/* Header */
#header{
	width: auto;
	background: linear-gradient(90deg, var(--primary) 60%, var(--accent) 100%);
	color: #fff;
}

/* Top bar */
#red_top{
	width: auto;
	height: auto;
	background: transparent; /* overrides old image */
	padding: 22px 28px 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

/* Welcome/title area */
#welcome{
	float: none;
	margin: 0;
}

#welcome h1{
	margin: 0;
	padding: 0;
	font-family: Montserrat, Roboto, Arial, sans-serif;
	font-size: clamp(22px, 2.2vw, 34px);
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #fff;
	text-shadow: none;
}

/* Register/sign in */
#register_sign{
	float: none;
	margin: 0;
	font-size: 14px;
	color: #fff;
}

#register_sign a{
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #fff;
	text-decoration: none;
	background: rgba(255,255,255,0.14);
	border: 1px solid rgba(255,255,255,0.25);
	padding: 10px 16px;
	border-radius: 999px;
	text-shadow: none;
	transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

#register_sign a:hover{
	background: rgba(255,255,255,0.22);
	border-color: rgba(255,255,255,0.35);
	text-decoration: none;
	transform: translateY(-1px);
}

/* Logo */
#header_left{
	float: none;
	margin: 0;
	padding: 0 28px 14px;
}

#header_left img{
	height: 74px;
	width: auto;
	display: block;
	border-radius: 12px;
	box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* Main navigation */
#nav_container{
	width: auto;
	height: auto;
	margin-top: 0;
	background: rgba(10, 20, 40, 0.22);
	backdrop-filter: blur(6px);
	border-top: 1px solid rgba(255,255,255,0.18);
}

UL#navigation{
	margin: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

#navigation li,
#navigation li#navfirst,
#navigation li#navlast{
	float: none;
	border: 0;
	list-style: none;
}

#navigation li a,
#navigation li#navfirst a{
	float: none;
	margin: 0;
	line-height: normal;
	display: block;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	font-family: Montserrat, Roboto, Arial, sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: #fff;
	text-shadow: none;
	transition: background 160ms ease, transform 160ms ease;
}

#navigation li a:hover,
#navigation li#navfirst a:hover{
	background: rgba(255,255,255,0.18);
	text-decoration: none;
	transform: translateY(-1px);
}

/* Content wrapper (used on home + inner pages) */
#single_container{
	width: auto;
	margin: 22px 28px 0;
	display: flex;
	gap: 22px;
	align-items: flex-start;
}

/* Home left (news block) */
#home_news_contain{
	width: auto;
	float: none;
	display: block;
	flex: 1 1 680px;
	border: 1px solid var(--border);
	background: var(--surface);
	border-radius: var(--radius-md);
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
	padding-bottom: 0;
}

#home_news_contain_inside{
	width: auto;
	margin: 0;
	padding: 16px;
	display: flex;
	gap: 14px;
}

/* Left list (news links) */
#home_news_contain_left{
	width: 220px;
	height: auto;
	float: none;
	background: #f6f8fb;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 10px 0;
	overflow: hidden;
}

/* Right detail (slideshow + text) */
.home_news_contain_right{
	width: auto;
	float: none;
	flex: 1 1 auto;
	min-width: 280px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	border: 1px solid var(--border);
	background: #fbfcfe;
}

/* Keep existing structure but drop the old background image */
.home_news_contain_right_bottom{
	width: auto;
	height: auto;
	background: none;
	padding: 14px 16px 16px;
}

.home_news_contain_right_text{
	width: auto;
	margin: 0;
	padding: 0;
}

.home_news_contain_right_text h2{
	margin: 0 0 8px;
	padding: 0;
	font-family: Montserrat, Roboto, Arial, sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: var(--text);
}

.home_news_contain_right_text h2 a{
	color: var(--primary);
	text-decoration: none;
}

.home_news_contain_right_text h2 a:hover{
	color: var(--accent);
	text-decoration: none;
}

/* Slideshow image */
.slideImage{
	width: 100%;
	height: auto;
	overflow: hidden;
}

.slideImage img{
	display: block;
	width: 100%;
	height: auto;
}

/* News list */
UL#news{
	margin: 0;
	padding: 0;
	list-style: none;
}

#news li{
	list-style: none;
	text-align: left;
}

#news li a,
#news li#first a,
#news li#last a{
	width: auto;
	height: auto;
	padding: 10px 14px;
	border: 0;
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
	text-shadow: none;
	font-size: 14px;
	color: var(--primary);
	font-weight: 700;
	display: block;
	transition: background 140ms ease;
}

#news li#last a{ border-bottom: 0; }

#news li a span,
#news li.active a span,
#news li#first.active a span,
#news li#last.active a span{
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 400;
	color: var(--muted);
	text-shadow: none;
}

#news li a:hover{
	background: rgba(200, 67, 43, 0.06);
	text-decoration: none;
}

#news li.active a,
#news li#first.active a,
#news li#last.active a{
	background: rgba(200, 67, 43, 0.12);
	color: var(--accent);
	border-bottom: 1px solid rgba(200, 67, 43, 0.18);
	text-shadow: none;
}

/* Home right column */
#home_right_contain{
	float: none;
	width: auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 0 1 320px;
	margin: 0;
}

/* Fixtures card */
#home_fixtures_quick{
	width: auto;
	border: 1px solid var(--border);
	background: var(--surface);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

#home_fixtures_quick_top{
	background: linear-gradient(90deg, var(--primary), #214884);
	height: auto;
	line-height: normal;
	padding: 12px 14px;
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	text-shadow: none;
	letter-spacing: 0.03em;
}

#home_fixtures_quick_middle{
	border: 0;
	background: transparent;
	padding: 14px;
	text-align: left;
	color: var(--text);
}

/* Sponsors */
#home_sponsors{
	margin-top: 0;
	text-align: left;
	font-size: 14px;
	font-weight: 700;
	color: var(--accent);
	border: 1px solid rgba(200, 67, 43, 0.18);
	background: rgba(200, 67, 43, 0.06);
	padding: 12px 14px;
	border-radius: var(--radius-md);
}

/* Footer */
#footer_container{
	width: auto;
	margin: 30px 0 0;
	padding: 22px 28px;
	background: #0f2342;
	color: #fff;
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.footer_box{
	float: none;
	width: auto;
	height: auto;
	background: transparent;
	border: 0;
	margin: 0 16px 14px 0;
	box-shadow: none;
	display: inline-block;
	vertical-align: top;
}

/* Home footer image links (keep existing images but soften edges) */
a#home_regions,
a#home_cup,
a#home_womens{
	width: 300px;
	height: 120px;
	display: block;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 10px 22px rgba(0,0,0,0.18);
	transform: translateY(0);
	transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

a#home_regions:hover,
a#home_cup:hover,
a#home_womens:hover{
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(0,0,0,0.22);
	filter: saturate(1.05);
}

/* Keep your existing background-image behaviour */
a#home_regions{ background: url(/img/regions-uncolor.jpg) no-repeat; text-indent: -9999px; }
a#home_regions:hover{ background: url(/img/regions-hover.jpg) no-repeat; text-indent: -9999px; }
a#home_cup{ background: url(/img/cup-uncolor.jpg) no-repeat; text-indent: -9999px; }
a#home_cup:hover{ background: url(/img/cup-hover.jpg) no-repeat; text-indent: -9999px; }
a#home_womens{ background: url(/img/womens-uncolor.jpg) no-repeat; text-indent: -9999px; }
a#home_womens:hover{ background: url(/img/womens-hover.jpg) no-repeat; text-indent: -9999px; }

/* Copyright + credit */
#copyright,
#highersites{
	float: none;
	margin: 10px 0 0;
	font-size: 12px;
	font-weight: 600;
	color: rgba(255,255,255,0.72);
	text-align: center;
}

#highersites a{
	color: rgba(255,255,255,0.86);
	text-decoration: underline;
}
#highersites a:hover{
	color: #fff;
}

/* Inner pages: left nav */
#left_nav,
#left_nav_contact{
	float: none;
	width: 260px;
}

#left_nav_contact{
	background: transparent;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	overflow: hidden;
}

#left_nav_contact_inner{
	width: auto;
	margin: 0;
	padding: 12px 14px;
	font-weight: 600;
	color: var(--text);
	font-size: 13px;
}
#left_nav_contact_inner p{ margin: 6px 0; padding: 0; }

#left_nav_top{
	width: auto;
	height: auto;
	background: linear-gradient(90deg, var(--primary), #214884);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	text-shadow: none;
	line-height: normal;
	padding: 12px 14px;
}

/* Right content */
#right_content{
	float: none;
	width: auto;
	flex: 1 1 auto;
	min-width: 320px;
}

/* League nav list */
UL#league_nav{ margin: 0; padding: 0; }
#league_nav li{ list-style: none; }

#league_nav li a,
#league_nav li a.active{
	width: auto;
	border: 1px solid var(--border);
	border-top: 0;
	background: #f6f8fb;
	color: var(--text);
	font-weight: 700;
	font-size: 13px;
	padding: 10px 12px;
	line-height: normal;
	display: block;
}

#league_nav li a.active{
	background: rgba(200, 67, 43, 0.10);
	color: var(--accent);
	border-color: rgba(200, 67, 43, 0.25);
}

#league_nav li a:hover{
	background: rgba(26, 58, 108, 0.08);
}

/* Tabs */
UL#tabs{
	margin: 18px 0 0;
	padding: 0;
	border-bottom: 1px solid var(--border);
	height: auto;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

#tabs li{ list-style: none; float: none; }

#tabs li a,
#tabs li a.active{
	width: auto;
	height: auto;
	background: transparent; /* override old gif */
	display: inline-block;
	margin-right: 0;
	padding: 10px 12px;
	border-radius: 999px;
	font-weight: 800;
	font-size: 13px;
	line-height: normal;
	color: var(--primary);
	border: 1px solid rgba(26, 58, 108, 0.25);
}

#tabs li a.active{
	color: #fff;
	background: var(--primary);
	border-color: var(--primary);
}

/* Tables */
#league_table_holder{ padding-top: 16px; font-size: 13px; }

table{
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 13px;
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	overflow: hidden;
}

table tr td{ padding: 10px 10px; }

table tr td.top{
	background: linear-gradient(90deg, var(--primary), #214884);
	color: #fff;
	font-weight: 800;
	text-align: center;
}

table tr td.first,
table tr td.firstteam{
	background: #f6f8fb;
}

table tr td.second,
table tr td.secondteam{
	background: #ffffff;
}

table tr td.firstteam,
table tr td.secondteam{
	text-align: left;
}

/* Headings + text */
h1{
	font-size: 18px;
	color: #fff;
	text-shadow: none;
	margin: 0;
	padding: 0;
}

h2{
	font-size: 16px;
	color: var(--text);
	margin: 0;
	padding: 0;
}

h2#page{
	font-size: 18px;
	color: var(--text);
	margin: 0 0 10px;
	padding: 0 0 8px;
	border-bottom: 1px solid var(--border);
	font-family: Montserrat, Roboto, Arial, sans-serif;
	font-weight: 800;
}

p{
	font-size: 14px;
	color: var(--text);
	line-height: 1.6;
}

p.news{
	font-size: 14px;
	color: #333; /* was white; modern card uses dark text */
	line-height: 1.6;
}

/* Forms */
label{
	display: block;
	font-weight: 800;
	font-size: 13px;
	margin: 10px 0 8px;
	color: var(--text);
}

.contact,
.contactForm,
.contactFormLrg{
	width: min(420px, 100%);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
}

.contact, .contactForm{ height: 40px; }
.contactFormLrg{ height: 140px; }

select{
	max-width: 100%;
	font-family: inherit;
}

/* Misc */
.link_container{
	width: auto;
	border-bottom: 1px dashed rgba(26, 58, 108, 0.25);
	padding: 12px 0;
}

.link_image{ float: left; width: 150px; }
.link_text{ float: right; width: calc(100% - 170px); font-size: 14px; }

#rules_left, #rules_right{
	float: none;
	width: auto;
	margin-top: 16px;
	font-size: 14px;
}

.floatRight{
	float: right;
	margin-left: 10px;
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
}

.error p{ color: #d92d20; }

div.active{ display: block !important; }
div.inactive{ display: none; }

/* Responsive */
@media (max-width: 980px){
	#single_container{
		flex-direction: column;
		margin: 16px 4vw 0;
	}

	#home_news_contain_inside{
		flex-direction: column;
	}

	#home_news_contain_left{
		width: auto;
	}

	#left_nav, #left_nav_contact{
		width: auto;
	}

	#red_top{
		flex-direction: column;
		align-items: flex-start;
		padding: 16px 4vw 10px;
	}

	#header_left{ padding: 0 4vw 14px; }

	#footer_container{ padding: 18px 4vw; }

	.link_image, .link_text{
		float: none;
		width: auto;
	}
}