/* ===== STYLE SHEET (separate section) ===== */
:root {
	--primary: #1a3c34;
	--primary-light: #2a5c4e;
	--secondary: #d4a017;
	--secondary-light: #f0c830;
	--accent: #c0392b;
	--dark: #0f1a17;
	--text-light: #f5f0e8;
	--text-muted: #b8b0a0;
	--card-bg: #ffffff;
	--font-heading: 'Bebas Neue', 'Impact', sans-serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
	--shadow-md: 0 8px 32px rgba(0,0,0,0.12);
	--shadow-lg: 0 16px 48px rgba(0,0,0,0.18);
	--radius: 12px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	font-family: var(--font-body);
	color: #1e1e1e;
	background: #faf8f5;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4 {
	font-family: var(--font-heading);
	letter-spacing: 0.04em;
	line-height: 1.1;
}

/* --- Logo --- */
.logo-svg {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.logo-svg .icon {
	width: 42px;
	height: 42px;
	background: var(--secondary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: var(--primary);
	font-family: var(--font-heading);
	font-weight: 700;
	flex-shrink: 0;
}

.logo-svg .text-group {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
}

.logo-svg .text-group .brand {
	font-family: var(--font-heading);
	font-size: 1.6rem;
	letter-spacing: 0.06em;
	color: white;
}

.logo-svg .text-group .brand .highlight {
	color: var(--secondary);
}

.logo-svg .text-group .sub {
	font-size: 0.6rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--text-muted);
	font-weight: 500;
}

/* --- Navigation --- */
.navbar {
	background: var(--primary);
	border-bottom: 3px solid var(--secondary);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	transition: box-shadow 0.3s;
}

.navbar.scrolled {
	box-shadow: var(--shadow-md);
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 24px;
	height: 68px;
}

.nav-links {
	display: flex;
	list-style: none;
	gap: 8px;
	align-items: center;
}

.nav-links a {
	color: var(--text-light);
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 500;
	padding: 8px 16px;
	border-radius: 6px;
	transition: background 0.2s, color 0.2s;
	letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
	background: rgba(212, 160, 23, 0.2);
	color: var(--secondary-light);
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	color: white;
	font-size: 1.6rem;
	cursor: pointer;
	padding: 4px;
}

/* --- Hero --- */
.hero {
	min-height: 100vh;
	background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 60%, #1e4a3a 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 120px 24px 80px;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("https://picsum.photos/1920/1080?random=101") center/cover no-repeat;
	opacity: 0.12;
	mix-blend-mode: overlay;
}

.hero::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 120px;
	background: linear-gradient(to top, #faf8f5, transparent);
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 900px;
}

.hero-badge {
	display: inline-block;
	background: var(--secondary);
	color: var(--primary);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 6px 20px;
	border-radius: 50px;
	margin-bottom: 20px;
}

.hero h1 {
	font-size: 4.5rem;
	color: white;
	margin-bottom: 12px;
	text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero h1 .highlight {
	color: var(--secondary);
}

.hero p {
	font-size: 1.2rem;
	color: var(--text-muted);
	max-width: 640px;
	margin: 0 auto 32px;
	font-weight: 400;
}

.hero-actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	padding: 14px 32px;
	border-radius: 50px;
	text-decoration: none;
	transition: transform 0.2s, box-shadow 0.2s;
	font-size: 0.95rem;
	border: none;
	cursor: pointer;
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.btn-primary {
	background: var(--secondary);
	color: var(--primary);
}

.btn-outline {
	background: transparent;
	color: white;
	border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
	border-color: var(--secondary);
	color: var(--secondary);
}

/* --- Sections --- */
section {
	padding: 100px 24px;
	max-width: 1200px;
	margin: 0 auto;
}

.section-label {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--secondary);
	margin-bottom: 8px;
}

.section-title {
	font-size: 3rem;
	color: var(--primary);
	margin-bottom: 16px;
}

.section-subtitle {
	color: #6b6b6b;
	font-size: 1.05rem;
	max-width: 600px;
	margin-bottom: 48px;
}

/* --- Cards --- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 28px;
}

.card {
	background: var(--card-bg);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform 0.25s, box-shadow 0.25s;
	cursor: default;
}

.card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-md);
}

.card-img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
	background: #e8e0d8;
}

.card-body {
	padding: 24px 20px 28px;
}

.card-tag {
	display: inline-block;
	background: rgba(212, 160, 23, 0.15);
	color: #8a6a0e;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: 50px;
	margin-bottom: 10px;
}

.card h3 {
	font-size: 1.5rem;
	color: var(--primary);
	margin-bottom: 8px;
}

.card p {
	color: #5a5a5a;
	font-size: 0.92rem;
	line-height: 1.65;
}

/* --- About --- */
.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.about-image {
	border-radius: var(--radius);
	width: 100%;
	height: 420px;
	object-fit: cover;
	box-shadow: var(--shadow-md);
}

.about-content .lead {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--primary);
	margin-bottom: 16px;
}

.about-content p {
	color: #4a4a4a;
	margin-bottom: 16px;
}

.stats-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 32px;
}

.stat-item {
	text-align: center;
	padding: 20px 12px;
	background: rgba(26, 60, 52, 0.04);
	border-radius: var(--radius);
	border-left: 3px solid var(--secondary);
}

.stat-item .number {
	font-family: var(--font-heading);
	font-size: 2.4rem;
	color: var(--primary);
	line-height: 1;
}

.stat-item .label {
	font-size: 0.8rem;
	color: #777;
	margin-top: 4px;
	font-weight: 500;
}

/* --- Fixtures --- */
.fixtures-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.fixture-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--card-bg);
	padding: 20px 28px;
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition: transform 0.2s, box-shadow 0.2s;
	cursor: default;
	flex-wrap: wrap;
	gap: 12px;
}

.fixture-row:hover {
	transform: translateX(4px);
	box-shadow: var(--shadow-md);
}

.fixture-date {
	font-weight: 600;
	color: var(--primary);
	min-width: 90px;
	font-size: 0.95rem;
}

.fixture-teams {
	font-weight: 600;
	font-size: 1.05rem;
	flex: 1;
	min-width: 180px;
}

.fixture-teams .vs {
	color: var(--text-muted);
	font-weight: 400;
	margin: 0 8px;
}

.fixture-venue {
	color: #777;
	font-size: 0.88rem;
	min-width: 120px;
}

.fixture-status {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 6px 16px;
	border-radius: 50px;
}

.status-upcoming {
	background: rgba(212, 160, 23, 0.12);
	color: #8a6a0e;
}

.status-live {
	background: rgba(192, 57, 43, 0.12);
	color: #a93226;
}

.status-finished {
	background: rgba(26, 60, 52, 0.08);
	color: var(--primary-light);
}

/* --- News --- */
.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 28px;
}

.news-card {
	background: var(--card-bg);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform 0.25s, box-shadow 0.25s;
	cursor: default;
	display: flex;
	flex-direction: column;
}

.news-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.news-card .card-img {
	height: 190px;
}

.news-card .card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.news-card .card-body .meta {
	font-size: 0.78rem;
	color: #999;
	margin-top: auto;
	padding-top: 12px;
	display: flex;
	justify-content: space-between;
}

/* --- Contact --- */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
}

.contact-info h3 {
	font-size: 1.6rem;
	color: var(--primary);
	margin-bottom: 12px;
}

.contact-info p {
	color: #5a5a5a;
	margin-bottom: 24px;
}

.contact-detail {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}

.contact-detail i {
	width: 40px;
	height: 40px;
	background: rgba(212, 160, 23, 0.12);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--secondary);
	font-size: 1rem;
	flex-shrink: 0;
}

.contact-detail span {
	font-size: 0.95rem;
	color: #3a3a3a;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.contact-form input,
.contact-form textarea {
	padding: 14px 18px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-family: var(--font-body);
	font-size: 0.95rem;
	transition: border-color 0.2s;
	outline: none;
	background: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
	border-color: var(--secondary);
	box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}

.contact-form textarea {
	min-height: 130px;
	resize: vertical;
}

.contact-form .btn {
	align-self: flex-start;
}

/* --- Footer --- */
footer {
	background: var(--dark);
	color: var(--text-muted);
	padding: 60px 24px 30px;
	margin-top: 40px;
}

.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
}

.footer-brand .logo-svg .text-group .brand {
	font-size: 1.3rem;
}

.footer-brand p {
	font-size: 0.88rem;
	margin-top: 16px;
	max-width: 320px;
	line-height: 1.7;
}

.footer-col h4 {
	font-family: var(--font-heading);
	font-size: 1.2rem;
	color: white;
	margin-bottom: 16px;
	letter-spacing: 0.06em;
}

.footer-col ul {
	list-style: none;
}

.footer-col ul li {
	margin-bottom: 10px;
}

.footer-col ul li a {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.2s;
}

.footer-col ul li a:hover {
	color: var(--secondary-light);
}

.footer-bottom {
	max-width: 1200px;
	margin: 40px auto 0;
	padding-top: 24px;
	border-top: 1px solid rgba(255,255,255,0.06);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 0.82rem;
}

.footer-bottom .social-links {
	display: flex;
	gap: 14px;
}

.footer-bottom .social-links a {
	color: var(--text-muted);
	font-size: 1.1rem;
	transition: color 0.2s;
}

.footer-bottom .social-links a:hover {
	color: var(--secondary);
}

/* --- Mobile --- */
@media (max-width: 768px) {
	.nav-links {
		display: none;
		position: absolute;
		top: 68px;
		left: 0;
		right: 0;
		background: var(--primary);
		flex-direction: column;
		padding: 16px 24px 24px;
		border-bottom: 3px solid var(--secondary);
		gap: 4px;
	}

	.nav-links.open {
		display: flex;
	}

	.nav-toggle {
		display: block;
	}

	.hero h1 {
		font-size: 2.8rem;
	}

	.hero p {
		font-size: 1rem;
	}

	section {
		padding: 60px 20px;
	}

	.section-title {
		font-size: 2.2rem;
	}

	.about-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.about-image {
		height: 280px;
	}

	.stats-row {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}

	.contact-grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.footer-container {
		grid-template-columns: 1fr 1fr;
	}

	.fixture-row {
		flex-direction: column;
		align-items: flex-start;
		padding: 16px 20px;
	}

	.fixture-date {
		min-width: auto;
	}

	.hero-actions {
		flex-direction: column;
		align-items: center;
	}

	.hero-actions .btn {
		width: 100%;
		max-width: 280px;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.stats-row {
		grid-template-columns: 1fr;
	}

	.footer-container {
		grid-template-columns: 1fr;
	}

	.hero h1 {
		font-size: 2.2rem;
	}

	.logo-svg .text-group .brand {
		font-size: 1.2rem;
	}

	.logo-svg .icon {
		width: 34px;
		height: 34px;
		font-size: 18px;
	}
}

/* --- Animations --- */
.fade-in {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

 .rugby-scoring-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #d9dfda;
    border-radius: 8px;
  }

  .rugby-scoring {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #1c3d35;
    background: #faf9f6;
  }

  .rugby-scoring caption {
    padding: 16px 20px;
    text-align: left;
    font-size: 20px;
    font-weight: 700;
    color: #d5a124;
    background: #1c3d35;
    border-bottom: 3px solid #d5a124;
  }

  .rugby-scoring thead th {
    padding: 12px 20px;
    text-align: left;
    font-weight: 700;
    color: #ffffff;
    background: #244b40;
    border-bottom: 2px solid #d5a124;
  }

  .rugby-scoring tbody th,
  .rugby-scoring tbody td {
    padding: 14px 20px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #d9dfda;
  }

  .rugby-scoring tbody th {
    font-weight: 700;
  }

  .rugby-scoring tbody tr:nth-child(odd) {
    background: #edf2ee;
  }

  .rugby-scoring tbody tr:nth-child(even) {
    background: #faf9f6;
  }

  .rugby-scoring tbody td:nth-child(2) {
    font-size: 18px;
    font-weight: 700;
    color: #1c3d35;
  }

  .rugby-scoring tbody tr:last-child th,
  .rugby-scoring tbody tr:last-child td {
    border-bottom: none;
  }

  @media (max-width: 600px) {
    .rugby-scoring {
      font-size: 14px;
    }

    .rugby-scoring caption {
      padding: 12px;
      font-size: 18px;
    }

    .rugby-scoring thead th,
    .rugby-scoring tbody th,
    .rugby-scoring tbody td {
      padding: 10px;
    }
  }

.rugby-scoring-wrapper .rugby-scoring tbody td:last-child {
    font-size: inherit;
    font-weight: 400;
    color: inherit;
  }
 
.normal-p {margin:10px auto;}

  .rugby-terms {
    list-style: none;
    margin: 20px 0;
    padding: 0;
    font-family: inherit;
  }

  .rugby-terms li {
    margin: 0 0 12px;
    padding: 14px 18px;
    border-left: 4px solid #d5a124;
    border-radius: 0 6px 6px 0;
    background: #edf2ee;
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
  }

  .rugby-terms li:last-child {
    margin-bottom: 0;
  }

  .rugby-terms .rugby-term {
    color: #1c3d35;
    font-weight: 700;
  }

  @media (max-width: 600px) {
    .rugby-terms li {
      padding: 12px 14px;
      font-size: 15px;
    }
  }
  
.rugby-faq {
    margin: 20px 0;
    font-family: inherit;
  }

  .rugby-faq details {
    margin-bottom: 12px;
    border-left: 4px solid #d5a124;
    border-radius: 0 6px 6px 0;
    background: #edf2ee;
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
  }

  .rugby-faq summary {
    padding: 14px 18px;
    color: #1c3d35;
    font-weight: 700;
    cursor: pointer;
  }

  .rugby-faq summary::marker {
    color: #d5a124;
  }

  .rugby-faq summary:focus-visible {
    outline: 2px solid #1c3d35;
    outline-offset: 2px;
  }

  .rugby-faq details p {
    margin: 0;
    padding: 0 18px 16px;
  }

  .rugby-faq details:last-child {
    margin-bottom: 0;
  }

  @media (max-width: 600px) {
    .rugby-faq details {
      font-size: 15px;
    }

    .rugby-faq summary {
      padding: 12px 14px;
    }

    .rugby-faq details p {
      padding: 0 14px 14px;
    }
  }