/* ============================================
   YARTEN TENNIS CLUB THEME - Green/Yellow Design
   ============================================ */

/* Override CSS Variables */
:root {
	--color-bg-body: #3da92f;
	--color-surface: #fff;
	--color-surface-alt: #f5f5f5;
	--color-text: #333;
	--color-text-muted: #666;
	--color-text-subtle: #999;
	--color-inverse-text: #fff;
	--color-border: #e0e0e0;
	--color-border-strong: #ccc;
	--color-shadow: rgba(0, 0, 0, .15);
	--color-menu-bg: #1a1a1a;
	--color-menu-border: rgba(255, 255, 255, .1);
	--color-overlay-shadow: rgba(0, 0, 0, .2);
	--color-code: #c33;
	--color-mark-bg: #fd5;
	--color-warning-border: #ddd;
	--color-warning-icon: #ddd;
	--color-meta-icon: #c4c4c4;
	--color-toc-text: #7a8288;
	--color-input-hover: #aaa;
	--color-textarea-border: rgba(0, 0, 0, .1);
	--color-focus: #f5a623;
	--color-widget-bubble-bg: #ebebeb;
	--color-footer-bg: #1a1a1a;
	--color-footer-border: #f5a623;

	--highlight-color: #f5a623;
	--green-bg: #01b450;
	--green-dark: #2d8a22;
	--dark-bg: #1a1a1a;
	--yellow: #f5a623;
	--yellow-hover: #e09000;
	--white: #ffffff;
}

/* Disable dark theme override */
html[data-theme="dark"] {
	color-scheme: light;
	--color-bg-body: #3da92f;
	--color-surface: #fff;
	--color-surface-alt: #f5f5f5;
	--color-text: #333;
	--color-text-muted: #666;
	--color-text-subtle: #999;
	--color-inverse-text: #fff;
	--color-border: #e0e0e0;
	--color-border-strong: #ccc;
	--color-shadow: rgba(0, 0, 0, .15);
	--color-menu-bg: #1a1a1a;
	--color-menu-border: rgba(255, 255, 255, .1);
	--color-overlay-shadow: rgba(0, 0, 0, .2);
	--color-footer-bg: #1a1a1a;
	--color-footer-border: #f5a623;
	--color-widget-bubble-bg: #ebebeb;
}

/* Hide theme toggle button */
.theme-toggle {
	display: none !important;
}

/* ============================================
   BODY & GLOBAL
   ============================================ */
body {
	background: var(--green-bg) !important;
	font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

.container--outer {
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
	margin: 20px auto;
	max-width: 1100px;
}

/* ============================================
   HEADER - News Ticker
   ============================================ */
.header {
	background: #00632c !important; 
}

.header__ticker {
	background: #1a1a1a; 
	padding: 8px 0;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.ticker__content {
	display: flex;
	align-items: center;
	gap: 15px;
	overflow: hidden;
	white-space: nowrap;
}

.ticker__label {
	color: var(--yellow);
	font-weight: 700;
	letter-spacing: 0.5px;
	flex-shrink: 0;
}

.ticker__items {
	display: flex;
	gap: 20px;
	overflow: hidden;
}

.ticker__item {
	color: var(--white) !important;
	text-decoration: none;
	font-size: 11px;
	white-space: nowrap;
	display: flex;
	align-items: center;
}

.ticker__item::after {
	content: "|";
	margin-left: 20px;
	color: rgba(255,255,255,0.3);
}

.ticker__item:hover {
	color: var(--yellow) !important;
}

.ticker__item:last-child::after {
	display: none;
}

/* ============================================
   HEADER - Logo & Menu
   ============================================ */
.header__container {
	display: flex !important;
	align-items: stretch;
	padding: 0;
	background: #00632c;
}

.logo {
	padding: 10px 20px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.logo__link {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.logo__title {
	color: var(--white) !important;
	font-size: 1rem;
	line-height: 1.1;
	font-weight: 800;
	text-transform: uppercase;
	margin: 0;
}

.logo__tagline {
	display: none !important; /* Hide tagline as per screenshot */
}

.logo__img {
	height: 70px;
	width: 70px;
	margin-right: 15px;
	border-radius: 50%;
	object-fit: cover;
}

.logo--mixed .logo__img {
	max-width: 70px;
	max-height: 70px;
}

.logo__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 180px;
}

/* Menu Styling */
.menu {
	flex: 1;
	border-bottom: none !important;
	display: flex;
}

.menu__list {
	background: transparent !important;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	width: 100%;
	justify-content: flex-end;
}

.menu__item {
	position: relative;
	transition: background-color 0.2s;
	border-left: 1px solid rgba(0,0,0,0.2);
	display: flex;
}

.menu__item:last-child {
	border-right: none;
}

.menu__link {
	color: var(--white) !important;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 10px 25px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	line-height: 1.2;
	text-decoration: none;
	min-width: 120px;
}

.menu__text {
	display: block;
	position: relative;
}

.has-submenu .menu__text::after {
	content: " ↓";
	font-size: 10px;
	vertical-align: middle;
}

.menu__sublabel {
	display: block;
	font-size: 11px;
	font-weight: 400;
	text-transform: lowercase;
	color: rgba(255,255,255,0.7);
	margin-top: 4px;
}

.menu__item:hover {
	background: rgba(255,255,255,0.1) !important;
}

.menu__item--active {
	background: rgba(0,0,0,0.1) !important;
}

.menu__item--active .menu__text {
	color: var(--yellow) !important;
}

.menu__item--active .menu__sublabel {
	color: rgba(255,255,255,0.5);
}

.menu__item--media .menu__text {
	/* Special case if we want media to always be yellow, 
	   but user said it's yellow because it's active in the photo */
}

/* Submenu */
.menu__item:hover > .submenu {
	display: block;
}

.submenu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: var(--green-dark);
	z-index: 1000;
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 3px solid var(--yellow);
	box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.submenu__item {
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

.submenu__item:last-child {
	border-bottom: none;
}

.submenu__link {
	color: var(--white) !important;
	padding: 12px 20px;
	display: block;
	font-size: 13px;
	text-decoration: none;
	text-align: left;
	font-weight: 600;
}

.submenu__link:hover {
	background: var(--yellow);
	color: var(--dark-bg) !important;
}

/* Mobile Menu Centering & Nesting */
@media screen and (max-width: 767px) {
	.header__container {
		flex-direction: column;
		align-items: stretch;
		background: #00632c;
	}

	.logo {
		padding: 15px;
		justify-content: center;
	}

	.logo__img {
		height: 60px;
		width: 60px;
	}

	.logo__title {
		font-size: 0.9rem;
	}

	.menu {
		width: 100%;
		display: block;
		background: #1a1a1a;
		border-top: 2px solid var(--yellow);
	}

	.menu__btn {
		display: flex;
		width: 100%;
		justify-content: space-between;
		align-items: center;
		background: transparent;
		color: var(--yellow);
		border: none;
		padding: 12px 20px;
		font-weight: 700;
		text-transform: uppercase;
		cursor: pointer;
	}

	.menu__list {
		display: none;
		flex-direction: column;
		width: 100%;
		background: #1a1a1a;
	}

	.menu__list--active {
		display: flex !important;
	}

	.menu__item {
		border-left: none;
		border-bottom: 1px solid rgba(255,255,255,0.1);
		width: 100%;
		display: block;
	}

	.menu__link {
		padding: 12px 20px;
		align-items: flex-start;
		text-align: left;
		min-width: 0;
	}

	.menu__sublabel {
		text-align: left;
	}

	.submenu {
		position: static;
		display: none;
		width: 100%;
		box-shadow: none;
		border-top: none;
		background: rgba(255,255,255,0.05);
	}

	.submenu-open > .submenu {
		display: block;
	}

	.submenu__link {
		padding: 10px 20px 10px 40px;
		font-size: 12px;
	}
}

@media screen and (min-width: 768px) {
	.menu__list {
		justify-content: flex-end;
	}
	
	.menu__btn {
		display: none;
	}
}

/* ============================================
   CONTENT WRAPPER
   ============================================ */
.wrapper {
	background: var(--white);
	padding: 25px 30px;
}

/* ============================================
   MAIN CONTENT - Section Header
   ============================================ */
.main__header {
	border-bottom: 3px solid var(--dark-bg);
	padding-bottom: 10px;
	margin-bottom: 25px;
}

.main__title {
	font-size: 1.6rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--dark-bg);
}

/* ============================================
   LIST ITEMS / POST SUMMARIES
   ============================================ */
.list__item {
	border-bottom: 1px solid #e0e0e0;
	padding-bottom: 20px;
	margin-bottom: 20px;
}

.post__wrapper {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.list__thumbnail {
	flex-shrink: 0;
	float: none;
	margin: 0;
	position: relative;
}

.list__thumbnail img {
	width: 180px;
	max-width: 180px;
	height: auto;
	object-fit: cover;
}

/* Category label overlay on thumbnail */
.list__thumbnail::after,
.post__category-label {
	content: attr(data-category);
	position: absolute;
	top: 0;
	left: 0;
	background: var(--yellow);
	color: var(--dark-bg);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 4px 12px;
	z-index: 10;
}

.post__body {
	flex: 1;
	min-width: 0;
}

.list__title {
	font-size: 1.1rem;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.3;
	margin-bottom: 5px;
}

.list__title a {
	color: var(--dark-bg);
}

.list__title a:hover {
	color: var(--yellow);
}

.list__meta {
	margin-top: 3px;
	font-size: 12px;
}

.list__excerpt {
	font-size: 13px;
	color: #555;
	line-height: 1.5;
	margin-top: 8px;
}

/* Read more link */
.list__footer-readmore {
	float: right;
	background: none;
	color: var(--yellow) !important;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 0;
}

.list__footer-readmore:hover {
	color: var(--yellow-hover) !important;
	background: none;
	text-decoration: underline;
}

/* ============================================
   POST TAGS (in list items)
   ============================================ */
.tags {
	margin-bottom: 8px;
}

.tags__item {
	background: var(--yellow) !important;
	margin: 0 4px 4px 0;
	border: none !important;
}

.tags__item:hover {
	background: var(--yellow-hover) !important;
}

.tags__link {
	background: transparent !important;
	color: var(--dark-bg) !important;
	padding: 4px 10px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	border: none !important;
	box-shadow: none !important;
}

.tags__link:hover {
	color: var(--dark-bg) !important;
}

.tags__badge {
	background: var(--yellow);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 30px 0;
	padding-top: 30px;
	border-top: 1px solid #e0e0e0;
}

.pagination__item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: var(--yellow);
	color: var(--white) !important;
	text-decoration: none;
	border-radius: 50%;
	font-weight: 700;
	font-size: 14px;
	transition: all 0.2s;
	margin: 0 4px;
}

.pagination__item:hover,
.pagination__item--current {
	background: var(--dark-bg);
	color: var(--white);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
	margin-left: 25px;
}

/* Sidebar widget titles */
.widget__title {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--dark-bg);
	border-bottom: 3px solid var(--yellow);
	padding-bottom: 8px;
	margin-bottom: 15px;
}

/* Search widget */
.widget-search__form {
	background: var(--white);
	padding: 0;
	border: none;
}

.widget-search__field {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	font-size: 14px;
	background: var(--white);
	color: #666;
}

.widget-search__submit {
	display: none;
}

/* Sidebar buttons / link widgets */
.widget .btn,
.widget-taglist__link {
	display: inline-block;
	margin: 0 4px 6px 0;
	padding: 5px 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 0;
}

/* Tag list widget - colored tags */
.widget-taglist__link {
	background: var(--yellow);
	color: var(--dark-bg) !important;
}

.widget-taglist__link:hover {
	background: var(--yellow-hover);
	color: var(--dark-bg) !important;
}

/* Widget items */
.widget__item {
	font-size: 13px;
	padding: 5px 0;
}

/* ============================================
   SIDEBAR - Contact Info Widget
   ============================================ */
.widget-contact {
	margin-bottom: 25px;
}

.widget-contact__title {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--dark-bg);
	border-bottom: 3px solid var(--yellow);
	padding-bottom: 8px;
	margin-bottom: 15px;
}

.widget-contact__item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 13px;
	line-height: 1.5;
}

.widget-contact__icon {
	flex-shrink: 0;
	margin-top: 2px;
	font-size: 14px;
}

.widget-contact__text {
	font-size: 12px;
	line-height: 1.4;
}

.widget-contact__text strong {
	text-transform: lowercase;
	font-weight: 400;
	opacity: 0.8;
}

/* ============================================
   SIDEBAR - CTA buttons
   ============================================ */
.widget-cta {
	margin-bottom: 20px;
}

.widget-cta__link {
	display: block;
	padding: 14px 18px;
	margin-bottom: 10px;
	color: var(--white) !important;
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	text-align: center;
	line-height: 1.3;
	transition: all 0.2s;
	text-decoration: none;
}

.widget-cta__link--green {
	background: #00632c;
	border: 1px solid #003300;
}

.widget-cta__link--green:hover {
	background: #006600;
}

.widget-cta__link--orange {
	background: #e87a6b; /* Coral/orange from screenshot */
	border: 1px solid #d66a5b;
}

.widget-cta__link--orange:hover {
	background: #f08a7b;
}

/* ============================================
   SLIDER
   ============================================ */
.slider {
	position: relative;
	width: 100%;
	height: 250px;
	overflow: hidden;
	background: #000;
	z-index: 0;
}

.slider__item {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 1s ease-in-out;
	z-index: 1;
}

.slider__item--active {
	opacity: 1;
	z-index: 2;
}

.slider__content {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

.slider__overlay {
	background: rgba(0, 0, 0, 0.4);
	padding: 20px;
	text-align: center;
	width: 100%;
}

.slider__title {
	color: #fff;
	font-size: 1.5rem;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 10px;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slider__link {
	color: var(--yellow);
	font-weight: 700;
	text-decoration: underline;
	text-transform: uppercase;
	font-size: 0.9rem;
}

/* FEATURED GRID (under slider) */
.featured-grid {
	background: #fff;
	padding: 10px 0;
}

.featured-grid__container {
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 10px;
	height: 300px;
}

.featured-grid__item--0 {
	grid-row: span 2;
}

.featured-grid__link {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.featured-grid__link:hover .featured-grid__img {
	transform: scale(1.05);
}

.featured-grid__overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 15px;
	background: linear-gradient(transparent, rgb(0, 0, 0));
	color: #fff;
}

.featured-grid__category {
	position: absolute;
	top: 10px;
	left: 0;
	background: var(--yellow);
	color: var(--dark-bg);
	font-size: 10px;
	font-weight: 700;
	padding: 3px 10px;
	text-transform: uppercase;
}

.featured-grid__title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
	color: white;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
	background: var(--dark-bg) !important;
	padding: 0;
	border-top: none;
	position: relative;
}

.footer__back-to-top {
	display: flex;
	justify-content: center;
	padding: 10px 0;
	background: #00632c;
}

.back-to-top {
	width: 30px;
	height: 30px;
	background: var(--yellow);
	border: none;
	border-radius: 50%;
	color: var(--dark-bg);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	transition: background 0.2s;
}

.back-to-top:hover {
	background: var(--white);
}

/* Featured posts section */
.footer__featured {
	background: var(--green-dark);
	padding: 25px 0;
}

.footer__title {
	color: var(--white);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 20px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--yellow);
}

.footer__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 15px;
}

.footer__item {
	display: block;
	text-align: center;
	color: var(--white) !important;
	text-decoration: none;
	transition: opacity 0.2s;
}

.footer__item:hover {
	opacity: 0.85;
	color: var(--yellow) !important;
}

.footer__image {
	width: 100%;
	height: 100px;
	object-fit: cover;
	margin-bottom: 8px;
}

.footer__caption {
	display: block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.3;
	color: var(--white);
}

/* Footer links bar */
.footer__container {
	padding: 12px 25px;
	font-size: 11px;
	border-top: 1px solid rgba(255,255,255,0.1);
}

.footer a {
	color: var(--white) !important;
}

.footer a:hover {
	color: var(--yellow) !important;
	text-decoration: underline;
}

.footer__copyright {
	color: rgba(255,255,255,0.6);
}

/* ============================================
   BUTTONS - Override highlight color
   ============================================ */

.btn:hover {
	background: var(--dark-bg);
	color: var(--white) !important;
}

/* Divider (shown when no menu) */
.divider {
	height: 4px;
	background: var(--yellow);
}

/* ============================================
   MEDIA QUERIES
   ============================================ */
@media screen and (max-width: 900px) {
	.footer__grid {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.ticker__items {
		overflow: hidden;
	}
}

@media screen and (max-width: 767px) {
	.post__wrapper {
		flex-direction: column;
	}
	
	.list__thumbnail img {
		max-width: 100%;
		width: 100%;
	}
	
	.footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.header__container {
		flex-direction: column;
	}

	.sidebar {
		margin-left: 0;
	}
}

@media screen and (max-width: 480px) {
	.footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.ticker__content {
		font-size: 10px;
	}
}
