/*
Theme Name: knight2026
Description: Custom WordPress theme built on knight2026 framework with ACF page builder functionality, responsive design, and modern features.
Author: Web Solutions IOM
Author URI: https://www.websolutions.im
Version: 1.0
Requires at least: 5.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v3 or Later
License URI: https://www.gnu.org/licenses/gpl.html
Text Domain: knight2026
Tags: custom-menu, featured-images, threaded-comments, translation-ready, page-builder
*/

/* ========================================
   CSS CUSTOM PROPERTIES (CSS VARIABLES)
   ======================================== */
:root {
	/* Primary Brand Colors - Extracted from logo.png */
	--color-primary: #17BED4;           /* Main brand cyan from logo */
	--color-primary-dark: #1298a9;      /* Darker cyan (20% darker) */
	--color-primary-light: #31d3e8;     /* Lighter cyan (20% lighter) */

	/* Secondary Brand Colors - From logo blue */
	--color-secondary: #2E6BB5;         /* Secondary blue from logo */
	--color-secondary-dark: #245590;    /* Darker blue */
	--color-secondary-light: #4181ce;   /* Lighter blue */
	--color-accent: #EA4699;            /* Accent pink from logo */

	/* Text Colors */
	--color-text-primary: #242424;      /* Main body text */
	--color-text-secondary: #1d1d1d;    /* Secondary text */
	--color-text-light: #666;           /* Light text */
	--color-text-muted: #999;           /* Muted/disabled text */
	--color-text-white: #ffffff;        /* White text */

	/* Background Colors */
	--color-bg-primary: #ffffff;        /* Main background */
	--color-bg-secondary: #f2f2f2;      /* Light background */
	--color-bg-light: #f7f7f7;          /* Very light background */
	--color-bg-dark: #242424;           /* Dark background */
	--color-bg-accent: #f5f5f5;         /* Accent background */

	/* Button Colors - FIXED to match brand */
	--color-button-primary: var(--color-primary);           /* ✅ Now matches brand cyan */
	--color-button-primary-hover: var(--color-primary-dark); /* ✅ Now matches brand cyan-dark */
	--color-button-text: #ffffff;                           /* White text on buttons */
	--color-button-text-alt: var(--color-secondary);        /* Alt button text */
	--color-button-border: var(--color-primary);            /* ✅ Now matches brand cyan */

	/* Button Variations */
	--color-button-blue: var(--color-secondary);            /* Use brand blue */
	--color-button-blue-hover: var(--color-secondary-dark); /* Use brand blue-dark */
	--color-button-orange: #ff6b35;                         /* Keep orange for variety */
	--color-button-green: #28a745;                          /* Keep green for success */

	/* Chess-Inspired Button Variants (IOM Chess colors) */
	--color-button-chess-blue: #1a237e;                     /* Deep chess blue inspired by IOM Chess */
	--color-button-chess-blue-hover: #0d1754;               /* Darker chess blue for hover */
	--color-button-chess-pink: #e91e63;                     /* Chess pink accent inspired by IOM Chess */
	--color-button-chess-pink-hover: #c2185b;               /* Darker pink for hover */
	--color-button-chess-navy: #0f1419;                     /* Deep navy for premium buttons */
	--color-button-chess-navy-hover: #1e2328;               /* Lighter navy for hover */

	/* Contact Form 7 & Form Colors - FIXED to coordinate with brand */
	--color-form-bg: #e8f7fa;                               /* Light cyan background */
	--color-form-border: var(--color-primary);              /* ✅ Now matches brand cyan */
	--color-form-text: var(--color-primary-dark);           /* ✅ Now matches brand cyan-dark */
	--color-form-error: #CF0404;                            /* Keep red for errors */

	/* Border Colors */
	--color-border-light: #f8f7f6;      /* Light borders */
	--color-border-medium: #ccc;        /* Medium borders */
	--color-border-dark: #242424;       /* Dark borders */

	/* Header Colors - Updated to use brand colors */
	--color-header-h1: #242424;                    /* H1 - keep dark for readability */
	--color-header-h2: var(--color-secondary);     /* H2 - brand blue */
	--color-header-h3: var(--color-accent);        /* H3 - brand pink accent */
	--color-header-h4: #1d1d1d;                    /* H4 - secondary dark text */
	--color-header-h5: var(--color-secondary-light); /* H5 - light brand blue */
	--color-header-h6: #242424;                    /* H6 - primary text */

	/* Link Colors - Updated to use brand colors */
	--color-link: var(--color-primary);            /* ✅ Links use brand cyan */
	--color-link-hover: var(--color-secondary);    /* ✅ Hover uses brand blue */
	--color-link-footer: #f2f2f2;                  /* Footer links - light gray */
	--color-link-footer-hover: var(--color-primary); /* ✅ Footer hover uses brand cyan */

	/* Status Colors */
	--color-success: #28a745;           /* Success messages */
	--color-warning: #f5b901;           /* Warning messages */
	--color-error: #CF0404;             /* Error messages */
	--color-info: var(--color-primary); /* ✅ Info uses brand cyan */

	/* Overlay Colors - Semi-transparent versions */
	--color-overlay-secondary: rgba(46, 107, 181, 0.8);  /* Secondary blue with 80% opacity */
	--color-overlay-secondary-light: rgba(46, 107, 181, 0.5);  /* Secondary blue with 50% opacity */
	--color-overlay-dark: rgba(36, 36, 36, 0.6);         /* Dark overlay for shadows */
}

html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}
html{scroll-behavior:smooth}
body{line-height:1}
a{text-decoration-skip-ink:auto}
a[href^="tel"]{color:inherit;text-decoration:none}
button{outline:0}
ol,ul{list-style:none}
blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}
q{display:inline;font-style:italic}
q:before{content:'"';font-style:normal}
q:after{content:'"';font-style:normal}
textarea,input[type="text"],input[type="button"],input[type="submit"],input[type="reset"],input[type="search"],input[type="password"]{-webkit-appearance:none;appearance:none;border-radius:0}
table{border-collapse:collapse;border-spacing:0}
th,td{padding:2px}
big{font-size:120%}
small,sup,sub{font-size:80%}
sup{vertical-align:super}
sub{vertical-align:sub}
dd{margin-left:20px}
kbd,tt{font-family:courier;font-size:12px}
ins{text-decoration:underline}
del,strike,s{text-decoration:line-through}
dt{font-weight:bold}
address,cite,var{font-style:italic}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important;word-break:normal}
.screen-reader-text:focus{background-color:var(--color-bg-light);border-radius:3px;box-shadow:0 0 2px 2px var(--color-overlay-dark);clip:auto!important;-webkit-clip-path:none;clip-path:none;color:var(--color-info);display:block;font-size:14px;font-size:.875rem;font-weight:700;height:auto;right:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}
.skip-link{left:-9999rem;top:2.5rem;z-index:999999999;text-decoration:underline}
.skip-link:focus{display:block;left:6px;top:7px;font-size:14px;font-weight:600;text-decoration:none;line-height:normal;padding:15px 23px 14px;z-index:100000;right:auto}
.visually-hidden:not(:focus):not(:active), .form-allowed-tags:not(:focus):not(:active){position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);white-space:nowrap}
#wrapper {
	width: 100%;
	max-width: 2000px;
	margin: 0 auto;
}
.content-block {
	width: 100%;
	max-width: 1240px;
	padding: 3em 1em;
	margin: 0 auto;
	box-sizing: border-box;
	overflow: hidden;

}
.full-screen .content-block {
	max-width: 2000px;
	padding: 2em 0;
}
.small {
	margin: -4em 0 0 0;
}
blockquote {
	padding: 2em;
	color: var(--color-secondary);
	width: 100%;
	max-width: 900px;
	margin: .5em auto;
	box-sizing: border-box;
	background: var(--color-bg-secondary);
	font-size: 1.2em;
	line-height: 1.3;
}
blockquote,q {
	quotes:none;
}
blockquote:before,blockquote:after,q:before,q:after {
	content:'';
	content:none;


}


table {
	border-collapse:collapse;
	border-spacing:0;
}
article, aside , details , figcaption , figure , footer , header , hgroup , menu , nav , section {
	display:block;
}
.clear {
	clear:both;
}
.screen-reader-text {
	clip:rect(1px, 1px, 1px, 1px);
	position:absolute !important;
}
.aligncenter {
	text-align: center;
	margin: .5em auto;
	display:block;
}
.aligncenter img {
	width: 100%;
	max-width: 600px;
	height: auto;
}
img {
   max-width: 100%;
   height: auto;
}

/*TEXT STYLING*/

ol,
ul {
	list-style: none;
}

ul , ol {
	list-style: disc;
	line-height: 1.4;
	font-size: 1.1em;
	margin: 1em  0 1em 2em;
	color: var(--color-secondary);
}
ol {
	list-style: decimal;
}
a {
	color: var(--color-link);
	font-weight: bold;
	text-decoration: none;
}

a:hover {
	color: var(--color-link-hover);
	text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	font-weight: 500;
}

h1{
	font-size: clamp(1.8rem, 5.5vw, 2.9rem);
	font-weight: bold;
	margin: .5em 0;
	color: var(--color-header-h1);
	line-height: 1.2; /* Tight line-height for large headings */
}

h2{
	font-size: clamp(1.5rem, 5vw, 2.4rem);
	color: var(--color-header-h2);
	margin-bottom: .5em;
	line-height: 1.3; /* Slightly looser for readability */
}

h3{
	font-size: clamp(1.8rem, 6vw, 2.7rem);
	/*font-weight: bold; */
	margin-bottom: .3em;
	color: var(--color-header-h3);
	line-height: 1.3; /* Consistent with H2 */
}

h4{
	font-size: clamp(1.1rem, 4vw, 1.4rem);
	color: var(--color-header-h4);
	margin-bottom: .1em;
	line-height: 1.4; /* More readable for smaller headings */
}

h5{
	font-size: clamp(1rem, 3vw, 1.2rem);
	color: var(--color-header-h5);
	font-style: italic;
	line-height: 1.4; /* Maintained existing value */
}

h6{
	font-size: clamp(0.6rem, 2.5vw, 0.7rem);
	color: var(--color-header-h6);
	line-height: 1.5; /* Most readable for smallest headings */
}

b, strong {
	font-weight: 600;
}

em,
i {
	font-style: italic;
}

pre {
	padding: 12px;
	letter-spacing: 2px;
	font-style: italic;
	margin: 0.5em;
}


p {
	margin-bottom: 15px;
    line-height: 1.2;
}

/*blockquote {
	border-left: 4px solid var(--color-text-muted);
	background: var(--color-bg-accent);
	font-style: italic;
	font-weight: 300;
	line-height: 1.27em;
	margin-bottom: 14px;
	padding-left: 25px;
} */

.alignright {
	float: right;
	margin: 0 0 .5em .5em;
}

img alignright {
	float: right;
	margin: 0 0 .5em .5em;
}


.aligncenter  img , .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.alignleft {
	float: left;
	margin: 0 .5em .5em 0;
}

.entry-title {
	font-size: 1.9em;
}

.entry-title ul {
	list-style: none;
}

legend {

	font-size: 1.2em;
	padding: 5px;
	font-weight: bold;
}

.entry-meta {
	display: none;
}

.entry-footer {
	display: none;
}


/* ********** Page Header *********/
#top-menu {
	background: #366fb6;
}
#top-menu .top-menu-container {
  width: 100%;
  max-width: 1240px;
  background: var(--color-bg-dark);
  padding: 0 1em;
  box-sizing: border-box;
  background: #366fb6;
  margin: 0 auto;
}

#logo {
	text-align: center;
}
.background-black {
	background: var(--color-overlay-secondary); /* Using secondary blue with transparency */
	margin-bottom:  450px;

}
.main-logo {
	overflow: hidden;
}
.main-logo img {
	width: 100%;
	max-width: 400px;
	height: auto;
}

.main-background {
      background: url(uploads/2019/02/main-header.jpg) bottom center no-repeat var(--color-bg-dark);
      -webkit-background-size: cover;
      -moz-background-size: cover;
      -o-background-size: cover;
      background-size: cover;
	  background-attachment: fixed;
}


#strap-line {
	background: var(--color-overlay-secondary-light); /* Using secondary blue with transparency */
	padding: 2em;
	width: 100%;
	max-width: 700px;
	font-size: 1.7em;
	position: relative;
	margin: -300px auto 275px auto;
	border-radius: 2px;
}
#small-strap {
	background: var(--color-bg-dark);
	padding: .7em 0;
	color: var(--color-text-white);
	font-size: 125%;
	/*margin-top: -.5em;
	text-align: right;
	padding-right: 2em;
	*/
}
/* ===== FRONT TOURNAMENT DISPLAY BLOCK STYLES ===== */

/* Section Container */
.front-tournament-display-section {
  padding: 2rem 0;
  margin: 2rem 0;
}

.front-tournament-display-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.front-tournament-display-header {
  text-align: center;
  margin-bottom: 2rem;
}

.front-tournament-display-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.front-tournament-display-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: stretch;
}

/* Tournament Item Width Classes */
.front-tournament-display-item {
  margin-bottom: 1.5rem;
}

.front-tournament-display-item.front-tournament-width-full {
  flex: 1 1 100%;
  max-width: 1200px;
}

.front-tournament-display-item.front-tournament-width-half {
  flex: 1 1 calc(50% - 0.75rem);
  max-width: 592px;
}

.front-tournament-display-item.front-tournament-width-third {
  flex: 1 1 calc(33.333% - 1rem);
  max-width: 396px;
}

/* Tournament Card */
.front-tournament-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.front-tournament-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Tournament Color Accent */
.front-tournament-display-item[style*="--tournament-accent-color"] .front-tournament-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--tournament-accent-color, #366fb6);
}

/* Header and Footer Messages */
.front-tournament-header-message,
.front-tournament-footer-message {
  background: rgba(54, 111, 182, 0.1);
  padding: 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1rem;
}

.front-tournament-footer-message {
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Tournament Title */
.front-tournament-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.front-tournament-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.front-tournament-title a:hover {
  color: var(--tournament-accent-color, #366fb6);
}

/* Tournament Details */
.front-tournament-details {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.front-tournament-detail {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.front-tournament-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.front-detail-label {
  font-weight: 600;
  color: #666;
  min-width: 80px;
  flex-shrink: 0;
}

.front-detail-value {
  color: #333;
  text-align: right;
  flex-grow: 1;
}

/* Tournament Status Styling */
.front-detail-value.front-status-upcoming {
  color: #f39c12;
  font-weight: 600;
}

.front-detail-value.front-status-entries_open {
  color: #27ae60;
  font-weight: 600;
}

.front-detail-value.front-status-in_progress {
  color: #e74c3c;
  font-weight: 600;
}

.front-detail-value.front-status-completed {
  color: #95a5a6;
  font-weight: 600;
}

/* Tournament Entered Players */
.front-tournament-entered-players {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.front-entered-players-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.5rem 0;
}

.front-entered-players-list {
  font-size: 0.9rem;
  line-height: 1.4;
}

.front-players-wrap {
  color: #666;
  line-height: 1.5;
  word-wrap: break-word;
}

.front-no-players {
  color: #999;
  font-style: italic;
}

/* Tournament Actions */
.front-tournament-actions {
  margin-top: auto;
  padding-top: 1rem;
}

.front-tournament-link-button {
  display: inline-block;
  background: var(--tournament-accent-color, #366fb6);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  width: auto;
  min-width: 150px;
  max-width: 250px;
  box-sizing: border-box;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.front-tournament-link-button:hover {
  background: color-mix(in srgb, var(--tournament-accent-color, #366fb6) 85%, black);
  transform: translateY(-1px);
  color: white;
}

/* Device Visibility Classes */
.front-tournament-display-section.show-desktop { display: block; }
.front-tournament-display-section.show-tablet { display: block; }
.front-tournament-display-section.show-mobile { display: block; }

/* Responsive Design */
@media (max-width: 768px) {
  .front-tournament-display-item.front-tournament-width-half,
  .front-tournament-display-item.front-tournament-width-third {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .front-tournament-display-title {
    font-size: 2rem;
  }

  .front-tournament-card {
    padding: 1rem;
  }

  .front-tournament-detail {
    flex-direction: column;
    align-items: flex-start;
  }

  .front-detail-value {
    text-align: left;
    margin-top: 0.25rem;
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  .front-tournament-display-item.front-tournament-width-third {
    flex: 1 1 calc(50% - 0.75rem);
    max-width: 592px;
  }
}

@media (min-width: 1025px) {
  .front-tournament-display-section:not(.show-desktop) { display: none; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .front-tournament-display-section:not(.show-tablet) { display: none; }
}

@media (max-width: 767px) {
  .front-tournament-display-section:not(.show-mobile) { display: none; }
}

/* ===== END FRONT TOURNAMENT DISPLAY BLOCK STYLES ===== */

/* ===== START CURRENT CHAMPIONS POPUP STYLES ===== */

/* Fixed Trigger Button */
.champions-popup-trigger {
  position: fixed;
  top: 50%;
  right: -70px;
  transform: translateY(-50%);
  z-index: 9998;
}

.champions-popup-button {
  background: linear-gradient(135deg, #366fb6 0%, #2c5aa0 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(54, 111, 182, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  justify-content: center;
  transform: rotate(90deg);
  transform-origin: center;
}

.champions-popup-button:hover {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
  transform: rotate(90deg) translateX(-2px);
  box-shadow: 0 6px 20px rgba(54, 111, 182, 0.4);
}

.champions-button-text {
  font-size: 13px;
  line-height: 1;
}

.champions-button-icon {
  font-size: 16px;
  line-height: 1;
}

/* Popup Overlay */
.champions-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.champions-popup-overlay.champions-popup-active {
  opacity: 1;
  visibility: visible;
}

/* Popup Container */
.champions-popup-container {
  background: #2a2a2a;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.champions-popup-active .champions-popup-container {
  transform: scale(1);
}

/* Popup Header */
.champions-popup-header {
  background: linear-gradient(135deg, #366fb6 0%, #2c5aa0 100%);
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.champions-popup-title {
  color: white;
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}

.champions-popup-close {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.champions-popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Popup Content */
.champions-popup-content {
  padding: 25px;
  max-height: 60vh;
  overflow-y: auto;
}

.champions-year-header {
  text-align: center;
  margin-bottom: 25px;
}

.champions-year {
  color: #f39c12;
  font-size: 28px;
  font-weight: bold;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Champions Table */
.champions-table-container {
  overflow-x: auto;
}

.champions-table {
  width: 100%;
  border-collapse: collapse;
  background: #333;
  border-radius: 8px;
  overflow: hidden;
}

.champions-table thead {
  background: #444;
}

.champions-table th {
  padding: 15px 20px;
  text-align: left;
  color: #ccc;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.champions-tournament-col {
  width: 40%;
}

.champions-winner-col {
  width: 60%;
}

.champions-table tbody tr {
  border-bottom: 1px solid #444;
  transition: background-color 0.2s ease;
}

.champions-table tbody tr:hover {
  background: #3a3a3a;
}

.champions-table tbody tr:last-child {
  border-bottom: none;
}

.champions-table td {
  padding: 15px 20px;
  color: #fff;
}

.champions-tournament {
  color: #ccc;
  font-weight: 500;
}

.champions-winner {
  color: #f39c12;
  font-weight: 600;
  font-size: 16px;
}

/* No Data Message */
.champions-no-data {
  text-align: center;
  padding: 40px 20px;
  color: #ccc;
}

.champions-no-data p {
  font-size: 16px;
  margin: 0;
}

/* Body Lock When Popup Open */
body.champions-popup-open {
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
  .champions-popup-trigger {
    right: -60px;
  }

 .champions-popup-button {
    padding: 10px 16px;
    font-size: 12px;
    min-width: 140px;
  }

  .champions-button-text {
    font-size: 11px;
  }

  .champions-button-icon {
    font-size: 14px;
  }

  .champions-popup-container {
    width: 95%;
    max-height: 85vh;
  }

  .champions-popup-header {
    padding: 15px 20px;
  }

  .champions-popup-title {
    font-size: 20px;
  }

  .champions-popup-content {
    padding: 20px;
  }

  .champions-year {
    font-size: 24px;
  }

  .champions-table th,
  .champions-table td {
    padding: 12px 15px;
  }

  .champions-table th {
    font-size: 12px;
  }

  .champions-winner {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .champions-popup-trigger {
    right: -55px;
  }

  .champions-popup-button {
    padding: 8px 12px;
    font-size: 11px;
    min-width: 120px;
  }

  .champions-table th,
  .champions-table td {
    padding: 10px 12px;
  }

  .champions-tournament-col {
    width: 35%;
  }

  .champions-winner-col {
    width: 65%;
  }
}

/* ===== END CURRENT CHAMPIONS POPUP STYLES ===== */

/* ===== START HONOURS ARCHIVE PAGE STYLES ===== */

/* Archive Header */
.honours-archive-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.honours-archive-title {
  font-size: 2.5rem;
  color: #366fb6;
  margin-bottom: 1rem;
  font-weight: bold;
}

.honours-archive-description {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Archive Container */
.honours-archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Year Section */
.honours-year-section {
  display: flex;
  align-items: stretch;
  margin-bottom: 4rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  min-height: 400px;
}

.honours-year-section.honours-layout-reverse {
  flex-direction: row-reverse;
}

/* Image Column */
.honours-image-column {
  flex: 1;
  position: relative;
  min-height: 400px;
}

.honours-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.honours-year-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.honours-year-section:hover .honours-year-image {
  transform: scale(1.05);
}

.honours-image-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
}

.honours-year-badge {
  background: linear-gradient(135deg, #366fb6 0%, #2c5aa0 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(54, 111, 182, 0.3);
}

/* Placeholder Image */
.honours-placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #dee2e6;
}

.honours-layout-reverse .honours-placeholder-image {
  border-right: none;
  border-left: 1px solid #dee2e6;
}

.honours-placeholder-content {
  text-align: center;
}

.honours-placeholder-text {
  color: #6c757d;
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Table Column */
.honours-table-column {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.honours-table-wrapper {
  width: 100%;
}

.honours-table-title {
  font-size: 1.8rem;
  color: #366fb6;
  margin-bottom: 1.5rem;
  font-weight: bold;
  text-align: center;
}

/* Championship Table */
.honours-table-container {
  overflow-x: auto;
}

.honours-championship-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.honours-championship-table thead {
  background: #f8f9fa;
}

.honours-championship-table th {
  padding: 1rem;
  text-align: left;
  color: #495057;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #dee2e6;
}

.honours-tournament-header {
  width: 40%;
}

.honours-champion-header {
  width: 60%;
}

.honours-championship-table tbody tr {
  border-bottom: 1px solid #f1f3f4;
  transition: background-color 0.2s ease;
}

.honours-championship-table tbody tr:hover {
  background: #f8f9fa;
}

.honours-championship-table tbody tr:last-child {
  border-bottom: none;
}

.honours-championship-table td {
  padding: 1rem;
  color: #495057;
}

.honours-tournament-name {
  font-weight: 500;
  color: #6c757d;
}

.honours-champion-name {
  font-weight: 600;
  color: #366fb6;
  font-size: 1.05rem;
}

/* No Championships Message */
.honours-no-championships {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
}

.honours-no-championships p {
  font-size: 1.1rem;
  margin: 0;
}

/* No Posts Message */
.honours-no-posts {
  text-align: center;
  padding: 4rem 2rem;
  color: #6c757d;
}

.honours-no-posts h2 {
  color: #366fb6;
  margin-bottom: 1rem;
}

/* Pagination */
.honours-pagination {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem 0;
}

.honours-pagination .page-numbers {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  background: #fff;
  color: #366fb6;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  transition: all 0.2s ease;
}

.honours-pagination .page-numbers:hover,
.honours-pagination .page-numbers.current {
  background: #366fb6;
  color: white;
  border-color: #366fb6;
}

/* Honours Photo Grid (4x4) */
.honours-photo-grid {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  background: #f8f9fa;
  overflow-y: auto;
}

.honours-year-badge-overlay {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 10;
}

.honours-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.honours-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.honours-grid-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.honours-grid-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.honours-grid-item:hover .honours-grid-image {
  transform: scale(1.1);
}

.honours-grid-title {
  font-size: 0.75rem;
  color: #495057;
  text-align: center;
  line-height: 1.2;
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Responsive Design */
@media (max-width: 768px) {
  .honours-archive-title {
    font-size: 2rem;
  }

  .honours-archive-description {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .honours-year-section,
  .honours-year-section.honours-layout-reverse {
    flex-direction: column;
    margin-bottom: 2rem;
  }

  .honours-image-column {
    min-height: 250px;
  }

  .honours-table-column {
    padding: 1.5rem;
  }

  .honours-table-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .honours-championship-table th,
  .honours-championship-table td {
    padding: 0.75rem;
  }

  .honours-championship-table th {
    font-size: 0.8rem;
  }

  .honours-champion-name {
    font-size: 1rem;
  }

  /* Honours photo grid responsive - tablet */
  .honours-grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .honours-grid-title {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .honours-archive-header {
    margin-bottom: 2rem;
    padding: 1rem 0;
  }

  .honours-archive-title {
    font-size: 1.75rem;
  }

  .honours-image-column {
    min-height: 200px;
  }

  .honours-table-column {
    padding: 1rem;
  }

  .honours-table-title {
    font-size: 1.3rem;
  }

  .honours-championship-table th,
  .honours-championship-table td {
    padding: 0.5rem;
  }

  .honours-tournament-header {
    width: 35%;
  }

  .honours-champion-header {
    width: 65%;
  }

  /* Honours photo grid responsive - mobile */
  .honours-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .honours-photo-grid {
    padding: 1rem;
  }

  .honours-year-badge-overlay {
    position: static;
    margin-bottom: 1rem;
    text-align: center;
  }

  .honours-grid-title {
    font-size: 0.65rem;
  }
}

/* ===== END HONOURS ARCHIVE PAGE STYLES ===== */

/* START   Icons with tool tips ******/
#icon-list {
	background: var(--color-bg-primary);
}
.icon-displays {
	padding: .3em;
	float: left;
}
.tooltip {
    position: relative;
    display: inline-block;
	padding: 0 1em;
}
.tooltip img {
	width: 100%;
	max-width: 100px;
	height: auto;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 180px;
    background-color: var(--color-secondary);
    color: var(--color-text-white);
    text-align: center;
    border-radius: 2px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 110%;
    left: 50%;
    margin-left: -90px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--color-secondary) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
.list-icons {
	list-style: none;
	line-height: 3.5;
	vertical-align: top;
}
.list-icons li {
	width: 50%;
	float: left;
	padding: 0 .2em;
	box-sizing: border-box;
}
.list-icons img {
	width: 100%;
	max-width: 45px;
	height: auto;
	vertical-align: middle;
	margin-right: .5em;
}
/* END   Icons with tool tips ******/

/**** Contact Form Styling  *****/
.red-required {
	color: var(--color-form-error);
	font-size: .8em;
	font-weight: bold;
}
#enquiry-form {
	padding: 2em;
	box-sizing: border-box;
	border-radius: 2px;
	background: var(--color-bg-primary);
}
#form-your-details , #form-camping-details {
	padding: 1em;
	box-sizing: border-box;
	border: solid 1px var(--color-bg-primary);
	margin: .5em 0;
}
.form-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.form-50 {
  flex: 0 0 48%;
  padding: .2em 0;
  box-sizing: border-box;
}
.small-text {
	font-size: 80%;
	color: var(--color-text-primary);
	margin-left: 100px;
}
input {
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
}
input[type=text] , input[type=email] , input[type=url]  {
	width:100%;
}
select {
	padding: 12px 20px !important;
    margin: 8px 0 !important;
    box-sizing: border-box;
}
textarea {
    width: 100%;
    padding: 12px 20px;
	margin: 8px 0;
    box-sizing: border-box;
    border-radius: 4px;
}

span.wpcf7-list-item {
     display: block !important;
	 padding: .3em 0;
}
input[type=submit] {
	width: 100%;
    max-width: 450px;
	padding: 1em 2em;
	background: var(--color-button-primary);
	color: var(--color-button-text);
	font-size: 1.2em;
	overflow: hidden;
	border: solid 1px var(--color-button-border);
	border-radius: 3px;
	cursor: pointer;
	-webkit-transition: background .5s;
    transition: background .5s;
	box-sizing: border-box;
    margin-top: 1em;

}
input[type=submit]:hover , .more-button:hover  {
	background: var(--color-button-primary-hover);
	color: var(--color-button-text);
}
#enquiry-form h3 {
	background: var(--color-bg-secondary);
	padding: .5em;
	box-sizing: border-box;
	margin: .5em 0;
	border-radius: 2px;
}

/* ==============================
   Contact Form 7 Styling
   ============================== */
#enquiry-form {
  background: var(--color-form-bg);
  border: 1px solid var(--color-form-border);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-width: 800px;
  margin: 0 auto;
}

#enquiry-form h2 {
  font-size: 1.75rem;
  color: var(--color-header-h2);
  margin-bottom: 1.5rem;
  text-align: center;
}

#enquiry-form label {
  display: block;
  font-weight: 600;
  color: var(--color-form-text);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Inputs & Textareas */

#enquiry-form input:focus,
#enquiry-form select:focus,
#enquiry-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(23,190,212,0.25);
  outline: none;
}

/* Textarea resize control */
#enquiry-form textarea {
  resize: vertical;
}

/* Submit Button */
#enquiry-form .form-submit input[type="submit"] {
  background: var(--color-button-primary);
  color: var(--color-button-text);
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

#enquiry-form .form-submit input[type="submit"]:hover {
  background: var(--color-button-primary-hover);
  transform: translateY(-1px);
}

#enquiry-form .form-submit input[type="submit"]:active {
  transform: translateY(0);
}

/* Errors */
#enquiry-form .wpcf7-not-valid {
  border-color: var(--color-form-error) !important;
}

#enquiry-form .wpcf7-not-valid-tip {
  color: var(--color-form-error);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

#enquiry-form .wpcf7-response-output {
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

#enquiry-form .wpcf7-response-output.wpcf7-mail-sent-ok {
  border: 1px solid var(--color-success);
  background: rgba(40,167,69,0.1);
  color: var(--color-success);
}

#enquiry-form .wpcf7-response-output.wpcf7-validation-errors,
#enquiry-form .wpcf7-response-output.wpcf7-aborted {
  border: 1px solid var(--color-form-error);
  background: rgba(207,4,4,0.08);
  color: var(--color-form-error);
}

#enquiry-form .wpcf7-response-output.wpcf7-spam-blocked {
  border: 1px solid var(--color-warning);
  background: rgba(245,185,1,0.08);
  color: var(--color-warning);
}

/* Ensure all inputs, selects, textareas have same height & width */
#enquiry-form input[type="text"],
#enquiry-form input[type="email"],
#enquiry-form input[type="number"],
#enquiry-form input[type="tel"],
#enquiry-form input[type="url"],
#enquiry-form input[type="date"],
#enquiry-form select,
#enquiry-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;  /* prevent selects from overflowing */
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    line-height: 1.4;
    border-radius: 6px;
	border:1px solid var(--color-form-text);
}

.form-field {
	width:100%;
}

.wpcf7-list-item-label {
	color: #000;
	font-weight:normal;
}

/* Fix select to match height of input fields */
#enquiry-form select {
    padding: 0.67rem 0.75rem !important;
	background:#fff;
}

/* Maintain consistent spacing between fields */
#enquiry-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

#enquiry-form .required-marker {
    color: var(--color-form-error);
    font-weight: bold;
    margin-left: 4px;
}



hr.soft {
	border: solid 5px var(--color-bg-secondary);
	margin: 1em 0;
	clear: both;
}

hr.soft-small {
	border: solid 5px var(--color-bg-primary);
	margin: 1em 0;
	clear: both;
}
/************ Custom Code ***********/
/*  Anchor Links Offset
p .anchor-point {
	padding-top: 200px !important;
	position: relative;
}
This works ....
a[name] {
	padding-top: 200px;
        margin-top: -200px;
	display: inline-block;
}
*/
.top-space {
	margin-top: 2em;
}

/* ********** START FOOTER *********/
#footer {
	background: var(--color-secondary);
	background-image: linear-gradient(rgba(0,0,0,0.36), rgba(0,0,0,0.23));
	padding: 2em 0;
}
#footer h3 {
	color: var(--color-text-white);
  font-size: 2em;
}
#footer a:link , #footer a:visited {
	color: var(--color-link-footer);
  font-weight: 400;
	transition: all ease-in-out .3s;
}
#footer a:hover {
	color: var(--color-link-footer-hover);
}
#footer-left , #footer-middle , #footer-middle-right , #footer-right {
	float: left;
	padding: 1em;
	box-sizing: border-box;
	overflow: hidden;
	list-style: none;
}
#footer-left {
	width: 25%;
}
#footer-middle {
	width: 25%;
}
#footer-middle-right {
	width: 20%;
}
#footer-right {
	width: 30%;
}
.footer-widget ul {
	list-style: none;
	color: var(--color-link-footer);
  margin: 0;
  margin-left: 5px;
}
.footer-widget ul li {
	line-height: 2;
  font-weight: 400;
}
.footer-bio-box {
	color: var(--color-link-footer);
	font-size: 0.95em;
	line-height: 1.6;
	margin-bottom: 1em;
}
.footer-bio-box p {
	margin: 0 0 0.8em 0;
}
.footer-bio-box p:last-child {
	margin-bottom: 0;
}
#business-details {
	text-align: center;
	background: var(--color-bg-secondary);
}
#business-details a:link , #business-details a:visited {
	color: var(--color-text-primary);
}
#copyright {
	padding: 1em 0;
	font-size: .9em;
	text-align: center;
	color: var(--color-text-primary);
	background: var(--color-bg-secondary);
	}
#copyright a:link , #copyright a:visited {
    color: var(--color-link);
}
#copyright a:hover {
	color: var(--color-text-primary);
	font-weight: bold;
}

/* Logo Bar */
#footer-logos {
	background: #ffffff;
	padding: 1.5em 0;
	border-bottom: 1px solid #e0e0e0;
}

.footer-logos-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 3em;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2em;
}

.footer-logo-item {
	flex-shrink: 0;
}

.footer-logo-item img {
	max-width: 100px;
	height: auto;
	display: block;
}

/* ********** END FOOTER*********/

/****** Media Queries moved to style-responsive.css *******/

/* ========================================
   HEADER GRID LAYOUT - 2-3-1 COLUMNS
   ======================================== */

/* Header Grid Layout - 3 columns: 2-3-1 (Logo+Name | Opening Times | Join Button) */
.iomc-header-grid {
  display: grid;
  grid-template-columns: 2fr 3fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo Section - Column 1 (2fr) */
.iomc-header-left {
  display: flex;
  align-items: center;
}

#branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#branding .main-logo {
  flex-shrink: 0;
}

#branding .main-logo img {
  max-height: 60px;
  width: auto;
  display: block;
}

#branding .site-title {
  flex: 1;
}

#branding .site-title h1 {
  font-size: 1.4rem;
  font-weight: bold;
  color: #384460;
  margin: 0;
  line-height: 1.2;
}

/* Opening Times Section - Column 2 (3fr) - Now has more space */
.iomc-header-center {
  font-size: 1.1rem;
  font-weight: bold;
  color: #384460;
  text-align: center;
  padding: 0 1rem;
}

.iomc-banner {
  line-height: 1.4;
}

/* CTA Buttons Section - Column 3 (1fr) */
.iomc-header-right {
  text-align: right;
}

.iomc-header-right .iomc-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.iomc-cta-btn {
  background: linear-gradient(135deg, #2E6BB5 0%, #EA4699 100%) !important;
  color: #fff !important;
  padding: 0.7em 1.2em;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  max-width: 200px;
}

.iomc-cta-btn:hover {
  background: linear-gradient(135deg, #1a237e 0%, #c2185b 100%) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Tournament Single Page Styles */
.tournament-single {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.tournament-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.tournament-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.tournament-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.tournament-champions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.tournament-champion {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.champion-label {
  opacity: 0.9;
}

.champion-name {
  font-weight: 600;
  background: rgba(255,255,255,0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.tournament-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

.tournament-status,
.tournament-type,
.tournament-fide-rated {
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  min-width: 120px;
}

.tournament-status {
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.3);
}

.tournament-status-upcoming { background: rgba(255,193,7,0.2); border-color: rgba(255,193,7,0.4); }
.tournament-status-entries_open { background: rgba(40,167,69,0.2); border-color: rgba(40,167,69,0.4); }
.tournament-status-in_progress { background: rgba(0,123,255,0.2); border-color: rgba(0,123,255,0.4); }
.tournament-status-completed { background: rgba(108,117,125,0.2); border-color: rgba(108,117,125,0.4); }

.tournament-type {
  background: rgba(255,255,255,0.15);
  font-size: 0.85rem;
}

.tournament-fide-rated {
  background: rgba(255,215,0,0.3);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.tournament-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.tournament-section {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-secondary);
}

.entry-info-content,
.format-info-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.entry-dates {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.entry-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(var(--color-primary-rgb), 0.05);
  border-radius: 8px;
}

.date-label {
  font-weight: 600;
  color: var(--color-primary);
}

.date-value {
  font-weight: 500;
}

.fees-title,
.time-control-title,
.venue-title,
.format-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 0.75rem 0;
}

.fees-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.fee-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(var(--color-secondary-rgb), 0.05);
  border-radius: 6px;
}

.fee-label {
  font-weight: 500;
}

.fee-value {
  font-weight: 600;
  color: var(--color-secondary);
}

.entry-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(var(--color-primary-rgb), 0.05);
  border-radius: 8px;
}

.contact-label {
  font-weight: 600;
  color: var(--color-primary);
}

.contact-email {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 500;
}

.contact-email:hover {
  text-decoration: underline;
}

.time-control-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.base-time,
.increment {
  padding: 0.5rem 0.75rem;
  background: rgba(var(--color-primary-rgb), 0.05);
  border-radius: 6px;
  font-weight: 500;
}

.venue-details {
  padding: 0.75rem;
  background: rgba(var(--color-secondary-rgb), 0.05);
  border-radius: 6px;
  font-weight: 500;
}

.format-details {
  padding: 1rem;
  background: rgba(var(--color-primary-rgb), 0.03);
  border-radius: 8px;
  border-left: 4px solid var(--color-secondary);
}

.format-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.rounds-info,
.start-time {
  font-weight: 500;
  color: var(--color-primary);
}

.pool-structure {
  white-space: pre-line;
  line-height: 1.6;
}

.tournament-dates {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tournament-date-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(var(--color-secondary-rgb), 0.05);
  border-radius: 6px;
}

/* Player Table Styles */
.tournament-players {
  grid-column: 1 / -1;
}

.players-table-container {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.players-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.players-table th,
.players-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.players-table th {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.players-table tbody tr:hover {
  background: rgba(var(--color-primary-rgb), 0.03);
}

.player-rank {
  width: 60px;
  text-align: center;
  font-weight: 600;
  color: var(--color-primary);
}

.player-name {
  font-weight: 500;
  min-width: 150px;
}

.player-rating {
  width: 80px;
  text-align: center;
  font-weight: 500;
}

.player-federation {
  width: 100px;
  text-align: center;
}

.player-zone {
  width: 80px;
  text-align: center;
}

.player-notes {
  font-style: italic;
  color: #666;
}

/* Tournament Rounds Styles */
.tournament-rounds {
  grid-column: 1 / -1;
}

.tournament-leaderboard {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.05) 0%, rgba(var(--color-secondary-rgb), 0.05) 100%);
  border-radius: 12px;
  border: 2px solid rgba(var(--color-secondary-rgb), 0.2);
}

.leaderboard-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1rem 0;
  text-align: center;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.leaderboard-table th {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leaderboard-table .rank {
  width: 60px;
  font-weight: 700;
  color: var(--color-primary);
}

.leaderboard-table .player {
  text-align: left;
  font-weight: 500;
}

.leaderboard-table .score {
  width: 80px;
  font-weight: 700;
  color: var(--color-secondary);
  font-size: 1.1rem;
}

.leaderboard-table .games {
  width: 80px;
  color: #666;
}

/* Rank-based colors (not position-based) */
.leaderboard-row.rank-1st .rank {
  color: #FFD700; /* Gold */
  font-size: 1.2rem;
  font-weight: 900;
}

.leaderboard-row.rank-2nd .rank {
  color: #C0C0C0; /* Silver */
  font-weight: 800;
}

.leaderboard-row.rank-3rd .rank {
  color: #CD7F32; /* Bronze */
  font-weight: 700;
}

.rounds-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.round-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}

.round-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.round-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text-white);
}

.round-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
}

.round-date,
.round-time {
  background: rgba(255,255,255,0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
}

.round-status-badge {
  background: rgba(255,255,255,0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.round-pairings {
  padding: 0;
}

.pairings-table {
  width: 100%;
  border-collapse: collapse;
}

.pairings-table th,
.pairings-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.pairings-table th {
  background: rgba(var(--color-primary-rgb), 0.05);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.pairings-table tbody tr:hover {
  background: rgba(var(--color-primary-rgb), 0.02);
}

.board-number {
  width: 80px;
  text-align: center;
  font-weight: 600;
  color: var(--color-primary);
}

.player-white,
.player-black {
  min-width: 150px;
  font-weight: 500;
}

.game-result {
  width: 100px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.result-1_0 { color: #28a745; }
.result-0_1 { color: #dc3545; }
.result-0_5_0_5 { color: #ffc107; }
.result-1_0_bye { color: #17a2b8; }
.result-0_0_bye { color: #6c757d; }

.pairing-bye .player-black {
  font-style: italic;
  color: #666;
}

/* Pairing Subtitle Row */
.pairing-subtitle-row {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.pairing-subtitle {
  text-align: center !important;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  padding: 1rem !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Qualifying Round Notice */
.round-qualifying-notice {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-left: 4px solid #ffc107;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qualifying-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.qualifying-label {
  font-weight: 600;
  color: #856404;
  font-size: 0.95rem;
}

/* Qualifying Rounds Section Notice */
.qualifying-rounds-notice {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-left: 4px solid #2196F3;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.qualifying-rounds-notice p {
  margin: 0;
  color: #1565C0;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Zone League Tables */
.round-league-tables {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--color-bg-light);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
}

.league-tables-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-primary);
}

.league-tables-grid {
  display: grid;
  gap: 1.5rem;
}

/* Dynamic grid based on number of tables */
.league-tables-grid:has(> :nth-child(1):last-child) {
  /* 1 table: full width */
  grid-template-columns: 1fr;
}

.league-tables-grid:has(> :nth-child(2):last-child) {
  /* 2 tables: 50% each */
  grid-template-columns: repeat(2, 1fr);
}

.league-tables-grid:has(> :nth-child(3):last-child) {
  /* 3 tables: 33% or 300px minimum */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.league-tables-grid:has(> :nth-child(4):last-child),
.league-tables-grid:has(> :nth-child(n+4)) {
  /* 4+ tables: 50% each (2 columns) */
  grid-template-columns: repeat(2, 1fr);
}

.zone-league-table {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.zone-table-title {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: 1rem;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.league-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.league-table thead th {
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.6rem 0.5rem;
  text-align: center;
  border-bottom: 2px solid var(--color-primary);
}

.league-table thead th.player {
  text-align: left;
  padding-left: 1rem;
}

.league-table tbody td {
  padding: 0.7rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.league-table tbody td.player {
  text-align: left;
  padding-left: 1rem;
  font-weight: 500;
}

.league-table tbody td.pos {
  font-weight: 700;
  color: var(--color-primary);
}

.league-table tbody td.pts {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-primary);
}

/* Clean alternating rows for better readability */
.league-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.04);
}

.league-table tbody tr:nth-child(odd) {
  background: transparent;
}

.league-table tbody tr:hover {
  background: rgba(var(--color-primary-rgb), 0.08);
}

/* Terms & Conditions Styles */
.tournament-terms {
  grid-column: 1 / -1;
  margin-top: 1rem;
}

.terms-content {
  line-height: 1.7;
}

.tc-section {
  margin-bottom: 2rem;
}

.tc-section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(var(--color-secondary-rgb), 0.3);
}

.tc-section-content,
.manual-tc-content {
  color: #444;
}

.tc-section-content h3,
.manual-tc-content h3 {
  color: var(--color-primary);
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
}

.tc-section-content ul,
.manual-tc-content ul {
  padding-left: 1.5rem;
}

.tc-section-content li,
.manual-tc-content li {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1190px) {
  .iomc-header-grid {
    padding: 1rem;
  }

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

  .iomc-cta-btn {
    padding: 0.8em 1.2em;
  }
}

@media (max-width: 900px) {
  .iomc-header-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    text-align: center;
    gap: 1.5rem;
  }

  .iomc-header-left {
    justify-content: center;
  }

  #branding {
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .iomc-header-center {
    text-align: center;
    padding: 0;
  }

  .iomc-header-right {
    text-align: center;
  }

  .iomc-header-right .iomc-cta-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .iomc-header-grid {
    gap: 1rem;
    padding: 1rem 0;
  }

  #branding .site-title {
    font-size: 1.2rem;
  }

  .iomc-header-center {
    font-size: 1rem;
  }

  .iomc-cta-btn {
    padding: 0.6em 1em;
    font-size: 0.9rem;
  }
}

/* ===== CHESS CALENDAR STYLES ===== */

/* Calendar Page Layout */
.calendar-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.calendar-page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calendar-page-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.calendar-page-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Calendar Container */
.chess-calendar-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Calendar Header */
.calendar-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.calendar-month-year {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.calendar-navigation {
    display: flex;
    gap: 1rem;
}

.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
}

/* Calendar Table */
.chess-calendar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.chess-calendar-table thead th {
    background: #f8f9fa;
    color: #495057;
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.chess-calendar-table tbody td {
    border: 1px solid #dee2e6;
    vertical-align: top;
    height: 120px;
    width: 14.28%;
    position: relative;
    background: #fff;
}

.calendar-day {
    padding: 0.5rem;
    height: 100%;
    position: relative;
}

.calendar-day-number {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.calendar-today {
    background: #e3f2fd !important;
}

.calendar-today .calendar-day-number {
    color: #1976d2;
    font-weight: 700;
}

.calendar-empty {
    background: #f8f9fa;
}

.calendar-has-events {
    background: #f0f8ff;
}

/* Calendar Events */
.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 85px;
    overflow: hidden;
}

.calendar-event {
    font-size: 0.75rem;
    padding: 2px 4px;
    border-radius: 3px;
    line-height: 1.2;
    margin-bottom: 1px;
    position: relative;
}

.calendar-event a,
.calendar-event .event-text {
    color: inherit;
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.calendar-event a:hover {
    text-decoration: underline;
}

.event-time {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: normal;
}

/* Event Type Colors */
.calendar-event-tournament {
    background: #fff3cd;
    color: #856404;
    border-left: 3px solid #ffc107;
}

.calendar-event-round {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

.calendar-event-event {
    background: #cce5ff;
    color: #004085;
    border-left: 3px solid #007bff;
}

/* Event Subtypes */
.calendar-event-entries_open,
.calendar-event-entries_close {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.calendar-event-tournament_date {
    background: #fff3cd;
    color: #856404;
    border-left: 3px solid #ffc107;
    font-weight: 600;
}

.calendar-event-agm {
    background: #e2e3e5;
    color: #383d41;
    border-left: 3px solid #6c757d;
}

.calendar-event-meeting {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 3px solid #17a2b8;
}

/* Status Colors */
.calendar-status-cancelled {
    opacity: 0.6;
    text-decoration: line-through;
}

.calendar-status-completed {
    opacity: 0.8;
}

/* Legend */
.calendar-legend {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.calendar-legend h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 12px;
    border-radius: 2px;
    border-left: 3px solid;
}

.legend-tournament {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.legend-entries {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.legend-round {
    background: #d4edda;
    border-left-color: #28a745;
}

.legend-event {
    background: #cce5ff;
    border-left-color: #007bff;
}

.legend-meeting {
    background: #d1ecf1;
    border-left-color: #17a2b8;
}

/* Quick Links */
.calendar-quick-links {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.calendar-quick-links h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

.quick-link-btn i {
    font-size: 1.2rem;
}

/* Upcoming Events */
.calendar-upcoming-events {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-upcoming-events h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.upcoming-events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upcoming-event-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.upcoming-event-tournament {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.upcoming-event-event {
    background: #cce5ff;
    border-left-color: #007bff;
}

.upcoming-event-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.upcoming-event-date {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    min-width: 180px;
}

.upcoming-event-title {
    flex: 1;
    margin: 0 1rem;
}

.upcoming-event-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
}

.upcoming-event-title a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.upcoming-event-type {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    margin-top: 0.25rem;
}

/* Status styling for upcoming events */
.upcoming-status-cancelled {
    opacity: 0.6;
}

.upcoming-status-cancelled .upcoming-event-title a {
    text-decoration: line-through;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-page-wrapper {
        padding: 1rem 0.5rem;
    }

    .calendar-page-title {
        font-size: 2rem;
    }

    .calendar-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .calendar-month-year {
        font-size: 1.5rem;
    }

    .chess-calendar-table thead th {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }

    .chess-calendar-table tbody td {
        height: 100px;
    }

    .calendar-day {
        padding: 0.25rem;
    }

    .calendar-day-number {
        font-size: 0.9rem;
    }

    .calendar-events {
        max-height: 70px;
    }

    .calendar-event {
        font-size: 0.7rem;
        padding: 1px 3px;
    }

    .event-time {
        display: none;
    }

    .legend-items {
        grid-template-columns: 1fr;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .upcoming-event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .upcoming-event-date {
        min-width: auto;
    }

    .upcoming-event-title {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .calendar-page-title {
        font-size: 1.75rem;
    }

    .calendar-header {
        padding: 1rem;
    }

    .calendar-month-year {
        font-size: 1.3rem;
    }

    .calendar-nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .chess-calendar-table tbody td {
        height: 80px;
    }

    .calendar-events {
        max-height: 55px;
    }

    .calendar-event {
        font-size: 0.65rem;
    }

    .calendar-legend,
    .calendar-quick-links,
    .calendar-upcoming-events {
        padding: 1rem;
    }
}

/* ===== THREE MONTH CALENDAR STYLES ===== */

/* Three Month Container */
.three-month-calendar-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Three Month Header */
.three-month-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1.5rem;
}

.three-month-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.three-month-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    flex: 1;
}

/* Three Month Grid */
.three-month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    align-items: start;
}

/* Ensure proper table display */
.three-month-grid .mini-calendar-table {
    display: table;
}

.three-month-grid .mini-calendar-table thead {
    display: table-header-group;
}

.three-month-grid .mini-calendar-table tbody {
    display: table-row-group;
}

/* Single Month Calendar */
.single-month-calendar {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.month-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 0.75rem;
    text-align: center;
}

.month-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Mini Calendar Table */
.mini-calendar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    table-layout: fixed;
}

.mini-calendar-table thead th {
    background: #e9ecef;
    color: #495057;
    padding: 0.5rem 0.25rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.7rem;
    border-bottom: 1px solid #dee2e6;
    width: 14.28%;
}

.mini-calendar-table tbody td {
    border: 1px solid #dee2e6;
    vertical-align: middle;
    height: 35px;
    width: 14.28%;
    position: relative;
    background: #fff;
    text-align: center;
    padding: 2px;
}

.mini-calendar-table tbody tr {
    display: table-row;
}

.mini-calendar-table tbody tr td {
    display: table-cell;
}

.mini-calendar-day {
    padding: 2px;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 31px;
}

.mini-day-number {
    font-weight: 500;
    color: #495057;
    font-size: 0.8rem;
    line-height: 1;
}

.mini-calendar-today {
    background: #e3f2fd !important;
}

.mini-calendar-today .mini-day-number {
    color: #1976d2;
    font-weight: 700;
}

.mini-calendar-empty {
    background: #f8f9fa;
}

.mini-calendar-has-events {
    background: #fff3cd;
}

.mini-event-indicator {
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    line-height: 1;
}

/* Responsive Design for Three Month Calendar */
@media (max-width: 1024px) {
    .three-month-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .single-month-calendar {
        max-width: 600px;
        margin: 0 auto;
    }

    .three-month-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .three-month-navigation {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .three-month-title {
        font-size: 1.2rem;
        order: -1;
    }

    .three-month-header {
        padding: 1rem;
    }

    .three-month-grid {
        padding: 1rem;
        gap: 1rem;
    }

    .mini-calendar-table tbody td {
        height: 30px;
    }

    .mini-day-number {
        font-size: 0.7rem;
    }

    .mini-event-indicator {
        width: 14px;
        height: 14px;
        font-size: 0.55rem;
    }
}

@media (max-width: 480px) {
    .three-month-title {
        font-size: 1rem;
    }

    .calendar-nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .mini-calendar-table tbody td {
        height: 25px;
    }

    .mini-calendar-table thead th {
        padding: 0.3rem 0.1rem;
        font-size: 0.65rem;
    }

    .mini-day-number {
        font-size: 0.65rem;
    }

    .mini-event-indicator {
        width: 12px;
        height: 12px;
        font-size: 0.5rem;
    }
}

/* Calendar View Toggle */
.calendar-view-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* ===== UPCOMING EVENTS BLOCK STYLES ===== */

/* Main Container */
.upcoming-events-block {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    margin: 2rem 0;
}

.upcoming-events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.upcoming-events-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.upcoming-events-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.upcoming-events-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
}

/* Events Grid */
.upcoming-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Event Cards */
.upcoming-event-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upcoming-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Date Badge */
.event-date-badge {
    background: var(--color-primary);
    color: white;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    min-width: 70px;
    flex-shrink: 0;
}

.event-month-day {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.event-day-name {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Event Details */
.event-details {
    flex: 1;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.event-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-title a:hover {
    color: var(--color-primary);
}

.event-time {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.event-type {
    font-size: 0.8rem;
    color: #868e96;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Event Type Colors */
.upcoming-event-tournament {
    border-left-color: #ffc107;
}

.upcoming-event-round {
    border-left-color: #28a745;
}

.upcoming-event-event {
    border-left-color: #007bff;
}

.upcoming-event-entries_open,
.upcoming-event-entries_close {
    border-left-color: #dc3545;
}

.upcoming-event-agm {
    border-left-color: #6c757d;
}

.upcoming-event-meeting {
    border-left-color: #17a2b8;
}

/* Status Colors */
.upcoming-status-cancelled {
    opacity: 0.6;
}

.upcoming-status-cancelled .event-title {
    text-decoration: line-through;
}

.upcoming-status-completed {
    opacity: 0.8;
}

/* Footer */
.upcoming-events-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.view-calendar-btn {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.view-calendar-btn:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.more-events-note {
    margin-top: 1rem;
    color: #6c757d;
    font-style: italic;
}

/* No Events State */
.no-upcoming-events {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

/* ===================================
   SINGLE EVENT TEMPLATE STYLES
   =================================== */

/* Event Header */
.event-single .event-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 3rem 2rem;
    margin: 0 0 2rem 0;
    border-radius: 0;
}

.event-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.event-title-section {
    margin-bottom: 1.5rem;
}

.event-single .event-header .event-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
    line-height: 1.2;
}

.event-recurring-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.event-type,
.event-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Event Type Colors */
.event-type-meeting {
    background: #17a2b8;
    color: white;
}

.event-type-agm {
    background: #6c757d;
    color: white;
}

.event-type-social {
    background: #007bff;
    color: white;
}

.event-type-training {
    background: #28a745;
    color: white;
}

.event-type-lecture {
    background: #ffc107;
    color: #212529;
}

.event-type-simul {
    background: #dc3545;
    color: white;
}

.event-type-other {
    background: #6c757d;
    color: white;
}

/* Event Status Colors */
.event-status-scheduled {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.event-status-confirmed {
    background: #28a745;
    color: white;
}

.event-status-cancelled {
    background: #dc3545;
    color: white;
}

.event-status-completed {
    background: #6c757d;
    color: white;
}

/* Featured Image */
.event-featured-image {
    max-width: 1200px;
    margin: 0 auto 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.event-featured-image .event-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Date and Time Section */
.event-section.event-datetime {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 0 auto 2rem;
    max-width: 1200px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.event-datetime-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.event-date-badge {
    background: var(--color-primary);
    color: white;
    border-radius: 12px;
    padding: 1rem;
    min-width: 100px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.date-day-of-week {
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.date-day-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin: 0.25rem 0;
}

.date-month-year {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-datetime-details {
    flex: 1;
}

.event-full-date,
.event-time {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.event-full-date:last-child,
.event-time:last-child {
    margin-bottom: 0;
}

.date-icon,
.time-icon {
    font-size: 1.5rem;
}

.date-text,
.time-text {
    font-size: 1.125rem;
    color: #333;
    font-weight: 500;
}

/* Event Section Base */
.event-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 0 auto 2rem;
    max-width: 1200px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
    font-weight: 700;
}

/* Event Information Grid */
.event-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.event-info-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-info-block {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.info-block-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-block-content {
    color: #333;
}

.info-block-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.event-contact a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
}

.event-contact a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.event-status-display {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Status display in info blocks - override header badge colors for readability */
.event-info-block .event-status-display.event-status-scheduled {
    background: #e7f5ff;
    color: #0c5aa6;
}

.event-info-block .event-status-display.event-status-confirmed {
    background: #d4edda;
    color: #155724;
}

.event-info-block .event-status-display.event-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.event-info-block .event-status-display.event-status-completed {
    background: #e2e3e5;
    color: #383d41;
}

/* Event Content */
.event-content,
.event-description {
    color: #333;
    font-size: 1rem;
    line-height: 1.8;
}

.event-content p,
.event-description p {
    margin-bottom: 1rem;
}

.event-content p:last-child,
.event-description p:last-child {
    margin-bottom: 0;
}

/* Call to Action Section */
.event-cta-section {
    background: #f8f9fa;
    border: 2px solid var(--color-primary);
}

.event-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.event-cta-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-calendar {
    background: var(--color-primary);
    color: white;
}

.cta-calendar:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: white;
}

.cta-archive {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.cta-archive:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.no-upcoming-events p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Tournament Display Block - Participating Members */
.front-players-wrap {
    line-height: 1.6;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.player-entry {
    display: inline-block;
    white-space: nowrap; /* Prevents wrapping within name+rating */
    margin-right: 0.75rem; /* More space between players */
    margin-bottom: 0.25rem; /* Space for line wrapping */
    padding: 0.1rem 0.3rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.front-entered-players-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.front-entered-players-list {
    margin-top: 0.5rem;
}

.front-no-players {
    font-style: italic;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive Design for Upcoming Events Block */
@media (max-width: 768px) {
    .upcoming-events-block {
        padding: 2rem 0;
    }

    .upcoming-events-title {
        font-size: 2rem;
    }

    .upcoming-events-subtitle {
        font-size: 1rem;
    }

    .upcoming-events-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .upcoming-event-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .event-date-badge {
        align-self: center;
    }

    .view-calendar-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .upcoming-events-container {
        padding: 0 0.5rem;
    }

    .upcoming-events-title {
        font-size: 1.8rem;
    }

    .upcoming-event-card {
        padding: 0.75rem;
    }

    .event-title {
        font-size: 1rem;
    }
}

.view-toggle-btn {
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.view-toggle-btn:hover {
    background: var(--color-primary-dark);
    color: white;
    text-decoration: none;
}

.view-toggle-current {
    background: var(--color-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Three Month Events Detail */
.three-month-events-detail {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.three-month-events-detail h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.period-events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-date-group {
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
}

.event-date-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.date-events {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.period-event {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border-left: 3px solid;
    font-size: 0.9rem;
}

.period-event a,
.period-event .period-event-text {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.period-event a:hover {
    text-decoration: underline;
}

.period-event-time {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: normal;
}

/* Period Event Type Colors */
.period-event-tournament {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.period-event-round {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.period-event-event {
    background: #cce5ff;
    color: #004085;
    border-left-color: #007bff;
}

.period-event-entries_open,
.period-event-entries_close {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.period-event-agm {
    background: #e2e3e5;
    color: #383d41;
    border-left-color: #6c757d;
}

.period-event-meeting {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

.period-event-tournament_date {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
    font-weight: 600;
}

/* Period Event Status */
.period-status-cancelled {
    opacity: 0.6;
    text-decoration: line-through;
}

.period-status-completed {
    opacity: 0.8;
}

.no-events-message {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.legend-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* Responsive Design for Three Month Events */
@media (max-width: 768px) {
    .calendar-view-toggle {
        flex-direction: column;
        align-items: center;
    }

    .three-month-events-detail {
        padding: 1rem;
    }

    .event-date-header {
        font-size: 1.1rem;
    }

    .period-event {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    .event-date-group {
        padding-left: 0.75rem;
    }
}

@media (max-width: 480px) {
    .view-toggle-btn,
    .view-toggle-current {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .event-date-header {
        font-size: 1rem;
    }

    .period-event {
        font-size: 0.8rem;
    }

    .period-event-time {
        display: block;
        margin-top: 0.25rem;
    }
}

/* ===== END THREE MONTH CALENDAR STYLES =====

/* ===== END CHESS CALENDAR STYLES =====*/




