/*
 Theme Name: horsearama
 Description: horsearama community
 Author: ott1
 Template:
 Version: 1.0.0
*/

/* Rss Feed */
div.wp-block-rss__item-title {
	background-color: #ffff66;
}

.wp-block-rss__item-excerpt {
	background-color: #ffffff;
}

.form-inline {  
	display: flex;
	flex-flow: row wrap;
	align-items: center;
}

.form-inline label {
	margin: 5px 10px 5px 0;
}

.form-inline input {
	vertical-align: middle;
	margin: 5px 10px 5px 0;
	padding: 10px;
	background-color: #fff;
	border: 1px solid #ddd;
}

@media (max-width: 600px) {
	.form-inline input {
		margin: 10px 0;
	}
	
	.form-inline {
		flex-direction: column;
		align-items: stretch;
	}
}

/* Hide the skip link by pushing it completely off the top of the screen */
.skip-link {
	position: absolute;
	top: -100px; /* Safely out of sight */
	left: 10px;
	height: auto;
	width: auto;
	padding: 10px;
	background-color: #000000; /* Matches your black theme */
	color: #ffffff;            /* White text */
	text-decoration: none;
	border: 1px solid #ffffff;
	z-index: 10000;            /* Stays above ads and menus */
	transition: top 0.2s ease; /* Optional: makes it smoothly slide down into view */
}

/* Pull it down into view instantly on hover OR when tabbed to (focus) */
.skip-link:hover,
.skip-link:focus {
	top: 10px; /* Moves it down onto the visible screen area */
}

/* Menu App */

/* 1. Main Navbar Container */
#appmenu {
	width: 80%;
	float: right;
	margin: 0;
	padding: .25em;
	background-color: #000000; /* Black background */
	color: #ffffff;            /* White text */
	position: relative;
	z-index: 9999;
}

/* 2. Top-Level Menu Items (Buttons) */
#appmenu > li {
	float: right;
	background-color: #000000; /* Black background */
	color: #ffffff;            /* White text */
	text-align: center;
	position: relative;
	cursor: pointer;
	list-style: none;
}
#appmenu li {
	white-space: nowrap;
	display: block;
	padding: .25em .75em;
	margin: 0;
	border: 0px solid #ffffff;
}

/* 3. Top-Level Hovered or Focused (Tabbed) State */
#appmenu > li:hover,
#appmenu > li:focus-within {
	background-color: #e0ebeb; /* Grey background */
	color: #000000;            /* Black text */
	text-decoration: underline;
}

/* 4. Open Sub-Menu Container */
#appmenu > li > ul {
	display: none;
	position: absolute;
	top: 100%;
	right: 0; /* Keeps dropdown aligned within screen when parent floats right */
	left: auto;
	padding: 0;
	margin: 0;
	width: auto;
	text-align: left;
	z-index: 1000;
	background-color: #ffffff; /* White background */
	list-style: none;
}

#appmenu > li[aria-expanded="true"] > ul {
	display: block;
}

/* 5. Sub-Menu Items (Normal State) */
#appmenu > li > ul li,
#appmenu > li > ul li a {
	background-color: #ffffff !important; /* White background */
	color: #000000 !important;            /* Black text */
	text-decoration: none;
}

/* 6. Sub-Menu Items Hovered, Active, or Focused (Tabbed State) */
#appmenu > li > ul li:hover,
#appmenu > li > ul li:hover a,
#appmenu > li > ul li:focus,
#appmenu > li > ul li:focus a,
#appmenu > li > ul li:active,
#appmenu > li > ul li:active a {
	background-color: #e0ebeb !important; /* Grey background */
	color: #000000 !important;            /* Black text */
	text-decoration: underline;
}

/* End Menu App */

/* My Theme */
.theme-light {
	color: #000 !important; 
	background-color: #f0f0f0 !important;
}
.theme-dark {
	color: #fff !important; 
	background-color: #000000 !important;
}
.theme {
	color: #fff !important; 
	background-color: #000000 !important;
}
.text-theme {
	color: #000000 !important;
}
.border-theme {
	border-color: #000000 !important;
}
.hover-theme:hover {
	color: #fff !important; 
	background-color: #000000 !important;
}
.hover-text-theme:hover {
	color: #000000 !important;
}
.hover-border-theme:hover {
	border-color: #000000 !important;
}

/* W3.CSS 4.13 June 2019 by Jan Egil and Borge Refsnes */
html {
	box-sizing: border-box;
}
*, *:before, *:after {
	box-sizing: inherit;
}

html, body {
	font-family: Verdana, sans-serif;
	font-size: 15px;
	line-height: 1.5;
}
html {
	overflow-x: hidden;
}
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }
.serif { font-family: serif; }
h1, h2, h3, h4, h5, h6 {
	font-family: "Segoe UI", Arial, sans-serif;
	font-weight: 200;
	margin: 10px 0;
}
.wide { letter-spacing: 4px; }
hr {
	border: 0;
	border-top: 1px solid #eee;
	margin: 20px 0;
}
.image {
	max-width: 100%;
	height: auto;
}
img { vertical-align: middle; }
a { color: inherit; }

.btn, .button {
	border: none;
	display: inline-block;
	padding: 8px 16px;
	vertical-align: middle;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	background-color: inherit;
	text-align: center;
	cursor: pointer;
	white-space: nowrap;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.btn:hover {
	box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}
.disabled, .btn:disabled, .button:disabled {
	cursor: not-allowed;
	opacity: 0.3;
}
.disabled *, :disabled * {
	pointer-events: none;
}
.btn.disabled:hover, .btn:disabled:hover {
	box-shadow: none;
}

.badge, .tag {
	background-color: #000;
	color: #fff;
	display: inline-block;
	padding-left: 8px;
	padding-right: 8px;
	text-align: center;
}
.badge { border-radius: 50%; }
.ul { list-style-type: none; padding: 0; margin: 0; }
.ul li { padding: 8px 16px; border-bottom: 1px solid #ddd; }
.ul li:last-child { border-bottom: none; }
.tooltip, .display-container { position: relative; }
.tooltip .text { display: none; }
.tooltip:hover .text { display: inline-block; }
.ripple:active { opacity: 0.5; }
.ripple { transition: opacity 0s; }
.input {
	padding: 8px;
	display: block;
	border: none;
	border-bottom: 1px solid #ccc;
	width: 100%;
}
.select {
	padding: 9px 0;
	width: 100%;
	border: none;
	border-bottom: 1px solid #ccc;
}
.check, .radio {
	width: 24px;
	height: 24px;
	position: relative;
	top: 6px;
}

.dropdown-click, .dropdown-hover {
	position: relative;
	display: inline-block;
	cursor: pointer;
}
.dropdown-hover:hover .dropdown-content {
	display: block;
}
.dropdown-hover:first-child, .dropdown-click:hover {
	background-color: #ccc;
	color: #000;
}
.dropdown-hover:hover > .button:first-child, .dropdown-click:hover > .button:first-child {
	background-color: #ccc;
	color: #000;
}
.dropdown-content {
	cursor: auto;
	color: #000;
	background-color: #fff;
	border: 1px solid #ccc;
	display: none;
	position: absolute;
	min-width: 160px;
	margin: 0;
	padding: 4px;
	z-index: 1;
}

.bar-block .dropdown-hover, .bar-block .dropdown-click { width: 100%; }
.bar-block .dropdown-hover .dropdown-content, .bar-block .dropdown-click .dropdown-content { min-width: 100%; }
.bar-block .dropdown-hover .button, .bar-block .dropdown-click .button {
	width: 100%;
	text-align: left;
	padding: 8px 16px;
}

.bar { width: 100%; overflow: hidden; }
.center .bar { display: inline-block; width: auto; }
.bar .bar-item {
	padding: 8px 16px;
	float: left;
	width: auto;
	border: none;
	display: block;
	outline: 0;
}
.bar .dropdown-hover, .bar .dropdown-click {
	position: static;
	float: left;
	color: white;
}
.bar .button { white-space: normal; }
.bar-block .bar-item {
	width: 100%;
	display: block;
	padding: 8px 16px;
	text-align: left;
	border: none;
	white-space: normal;
	float: none;
	outline: 0;
}
.bar-block.center .bar-item { text-align: center; }

.block { display: block; width: 100%; }
.responsive { display: block; overflow-x: auto; }
.container:after, .container:before, .panel:after, .panel:before, .row:after, .row:before, .row-padding:after, .row-padding:before,
.cell-row:before, .cell-row:after, .clear:after, .clear:before, .bar:before, .bar:after {
	content: "";
	display: table;
	clear: both;
}
.col, .half, .third, .twothird, .threequarter, .quarter { float: left; width: 100%; }
.col.s1 { width: 8.33333%; }
.col.s2 { width: 16.66666%; }
.col.s3 { width: 24.99999%; }
.col.s4 { width: 33.33333%; }
.col.s5 { width: 41.66666%; }
.col.s6 { width: 49.99999%; }
.col.s7 { width: 58.33333%; }
.col.s8 { width: 66.66666%; }
.col.s9 { width: 74.99999%; }
.col.s10 { width: 83.33333%; }
.col.s11 { width: 91.66666%; }
.col.s12 { width: 99.99999%; }

@media (min-width: 580px) {
	.col.m1 { width: 8.33333%; }
	.col.m2 { width: 16.66666%; }
	.col.m3, .quarter { width: 24.99999%; }
	.col.m4, .third { width: 33.33333%; }
	.col.m5 { width: 41.66666%; }
	.col.m6, .half { width: 49.99999%; }
	.col.m7 { width: 58.33333%; }
	.col.m8, .twothird { width: 66.66666%; }
	.col.m9, .threequarter { width: 74.99999%; }
	.col.m10 { width: 83.33333%; }
	.col.m11 { width: 91.66666%; }
	.col.m12 { width: 99.99999%; }
}

@media (min-width: 993px) {
	.col.l1 { width: 8.33333%; }
	.col.l2 { width: 16.66666%; }
	.col.l3 { width: 24.99999%; }
	.col.l4 { width: 33.33333%; }
	.col.l5 { width: 41.66666%; }
	.col.l6 { width: 49.99999%; }
	.col.l7 { width: 58.33333%; }
	.col.l8 { width: 66.66666%; }
	.col.l9 { width: 74.99999%; }
	.col.l10 { width: 83.33333%; }
	.col.l11 { width: 91.66666%; }
	.col.l12 { width: 99.99999%; }
}

.rest { overflow: hidden; }
.stretch { margin-left: -16px; margin-right: -16px; }
.content, .auto { margin-left: auto; margin-right: auto; }
.content { max-width: 980px; }
.auto { max-width: 1140px; }
.cell-row { display: table; width: 100%; }
.cell { display: table-cell; }
.cell-top { vertical-align: top; }
.cell-middle { vertical-align: middle; }
.cell-bottom { vertical-align: bottom; }
.hide { display: none !important; }
.show-block, .show { display: block !important; }
.show-inline-block { display: inline-block !important; }

@media (max-width: 1205px) {
	.auto { max-width: 95%; }
}

@media (max-width: 600px) {
	.modal-content { margin: 0 10px; width: auto !important; }
	.modal { padding-top: 30px; }
	.dropdown-hover.mobile .dropdown-content, .dropdown-click.mobile .dropdown-content { position: relative; }
	.hide-small { display: none !important; }
	.mobile { display: block; width: 100% !important; }
	.bar-item.mobile, .dropdown-hover.mobile, .dropdown-click.mobile { text-align: center; }
	.dropdown-hover.mobile, .dropdown-hover.mobile .btn, .dropdown-hover.mobile .button,
	.dropdown-click.mobile, .dropdown-click.mobile .btn, .dropdown-click.mobile .button { width: 100%; }
}

@media (max-width: 768px) {
	.modal-content { width: 500px; }
	.modal { padding-top: 50px; }
}

@media (min-width: 993px) {
	.modal-content { width: 900px; }
	.hide-large { display: none !important; }
	.sidebar.collapse { display: block !important; }
}

@media (max-width: 992px) and (min-width: 601px) {
	.hide-medium { display: none !important; }
}

@media (max-width: 992px) {
	.sidebar.collapse { display: none; }
	.main { margin-left: 0 !important; margin-right: 0 !important; }
	.auto { max-width: 100%; }
}

.top, .bottom { position: fixed; width: 100%; z-index: 1; }
.top { top: 0; }
.bottom { bottom: 0; }
.overlay {
	position: fixed;
	display: none;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0,0,0,0.5);
	z-index: 2;
}
.display-topleft { position: absolute; left: 0; top: 0; }
.display-topright { position: absolute; right: 0; top: 0; }
.display-bottomleft { position: absolute; left: 0; bottom: 0; }
.display-bottomright { position: absolute; right: 0; bottom: 0; }
.display-middle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); -ms-transform: translate(-50%,-50%); }
.display-left { position: absolute; top: 50%; left: 0%; transform: translate(0%,-50%); -ms-transform: translate(-0%,-50%); }
.display-right { position: absolute; top: 50%; right: 0%; transform: translate(0%,-50%); -ms-transform: translate(0%,-50%); }
.display-topmiddle { position: absolute; left: 50%; top: 0; transform: translate(-50%,0%); -ms-transform: translate(-50%,0%); }
.display-bottommiddle { position: absolute; left: 50%; bottom: 0; transform: translate(-50%,0%); -ms-transform: translate(-50%,0%); }
.display-container:hover .display-hover { display: block; }
.display-container:hover span.display-hover { display: inline-block; }
.display-hover { display: none; }
.display-position { position: absolute; }
.circle { border-radius: 50%; }
.round-small { border-radius: 2px; }
.round, .round-medium { border-radius: 4px; }
.round-large { border-radius: 8px; }
.round-xlarge { border-radius: 16px; }
.round-xxlarge { border-radius: 32px; }
.row-padding, .row-padding > .half, .row-padding > .third, .row-padding > .twothird,
.row-padding > .threequarter, .row-padding > .quarter, .row-padding > .col { padding: 0 8px; }
.container, .panel { padding: 0.01em 16px; }
.panel { margin-top: 16px; margin-bottom: 16px; }
.code, .codespan { font-family: Consolas, "courier new"; font-size: 16px; }
.code {
	width: auto;
	background-color: #fff;
	padding: 8px 12px;
	border-left: 4px solid #4CAF50;
	word-wrap: break-word;
}
.codespan {
	color: crimson;
	background-color: #f1f1f1;
	padding-left: 4px;
	padding-right: 4px;
	font-size: 110%;
}
.card, .card-2 { box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12); }
.card-4, .hover-shadow:hover { box-shadow: 0 4px 10px 0 rgba(0,0,0,0.2), 0 4px 20px 0 rgba(0,0,0,0.19); }

@keyframes animatezoom {
	from { transform: scale(0); }
	to { transform: scale(1); }
}

.animate-input { transition: width 0.4s ease-in-out; }
.animate-input:focus { width: 100% !important; }
.opacity, .hover-opacity:hover { opacity: 0.60; }
.opacity-off, .hover-opacity-off:hover { opacity: 1; }

.tiny { font-size: 10px !important; }
.small { font-size: 12px !important; }
.medium { font-size: 15px !important; }
.large { font-size: 18px !important; }
.xlarge { font-size: 24px !important; }
.xxlarge { font-size: 36px !important; }
.xxxlarge { font-size: 48px !important; }
.jumbo { font-size: 64px !important; }
.left-align { text-align: left !important; }
.right-align { text-align: right !important; }
.justify { text-align: justify !important; }
.center { text-align: center !important; }
.border-0 { border: 0 !important; }
.border { border: 1px solid #ccc !important; }
.border-top { border-top: 1px solid #ccc !important; }
.border-bottom { border-bottom: 1px solid #ccc !important; }
.border-left { border-left: 1px solid #ccc !important; }
.border-right { border-right: 1px solid #ccc !important; }
.topbar { border-top: 6px solid #ccc !important; }
.bottombar { border-bottom: 6px solid #ccc !important; }
.leftbar { border-left: 6px solid #ccc !important; }
.rightbar { border-right: 6px solid #ccc !important; }
.section, .code { margin-top: 16px !important; margin-bottom: 16px !important; }
.margin { margin: 16px !important; }
.margin-top { margin-top: 16px !important; }
.margin-bottom { margin-bottom: 16px !important; }
.margin-left { margin-left: 16px !important; }
.margin-right { margin-right: 16px !important; }
.padding-small { padding: 4px 8px !important; }
.padding { padding: 8px 16px !important; }
.padding-large { padding: 12px 24px !important; }
.padding-16 { padding-top: 16px !important; padding-bottom: 16px !important; }
.padding-24 { padding-top: 24px !important; padding-bottom: 24px !important; }
.padding-32 { padding-top: 32px !important; padding-bottom: 32px !important; }
.padding-48 { padding-top: 48px !important; padding-bottom: 48px !important; }
.padding-64 { padding-top: 64px !important; padding-bottom: 64px !important; }
.left { float: left !important; }
.right { float: right !important; }
.button:hover { color: #000 !important; background-color: #ccc !important; }
.transparent, .hover-none:hover { background-color: transparent !important; }
.hover-none:hover { box-shadow: none !important; }

/* ======================================================
   MOBILE OVERFLOW & RESPONSIVE FIXES (Screens <= 600px)
   ====================================================== */

/* 1. Global Box-Sizing & Viewport Containment */
html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important; /* Kills horizontal scrolling/white space */
    margin: 0;
    padding: 0;
    position: relative !important;
}

/* 2. Prevent Long Links and Text from Blowing Out Mobile Viewport */
p, a, main, .section {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-all !important; /* Forces long domain URLs to split cleanly */
    hyphens: auto;
}

/* 3. Re-anchor the Fixed 'To Top' Button */
footer button[onclick="topFunction()"],
footer .button[title="Go to top"] {
    position: fixed !important;
    right: 15px !important;
    bottom: 15px !important;
    left: auto !important;
    z-index: 99999 !important; /* Guarantees it stays above all content */
}

/* 4. Quick-Links Buttons Wrapping */
.section a.button {
    display: inline-block !important;
    margin-bottom: 8px !important;
    white-space: normal !important;
}

@media (max-width: 600px) {
    
    /* Target Header Titles */
    #myHeader h1 {
        font-size: 20px !important;
        margin: 5px 0 !important;
        line-height: 1.2 !important;
    }

    #myHeader h1 a,
    #myHeader h1 a.bar-item,
    #myHeader h1 a.button {
        font-size: 18px !important;
        display: inline-block !important;
        padding: 4px 6px !important;
        white-space: normal !important;
        word-break: break-word !important;
        max-width: 95% !important;
        width: auto !important;
    }

    #myHeader h2 {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }

    /* Stack Main Content and Sponsor Sidebar Vertically */
    .threequarter, 
    .quarter {
        width: 100% !important;
        float: none !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Tame Google AdSense Containers */
    .adsbygoogle, 
    ins.adsbygoogle {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    /* Search Input Form Overflow */
    .search-form input[type="search"] {
        max-width: 60% !important;
    }

    /* 'To Top' Button Position on Mobile */
    footer button[title="Go to top"] {
        right: 15px !important;
        bottom: 15px !important;
        font-size: 12px !important;
        padding: 8px 12px !important;
    }
}

/* ======================================================
   FINAL OVERRIDE: PERFECT CENTER & EVEN MARGINS ON MOBILE
   ====================================================== */

@media screen and (max-width: 600px) {

    /* 1. Strip out extra spacing causing asymmetric offsets */
    .row-padding, 
    .container, 
    .threequarter, 
    .quarter,
    main#main,
    main#main > div,
    main#main div.row-padding,
    .row-padding > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* 2. Lock layout wrapper to 95% width (Removed header.container to keep menu intact) */
    div.row-padding.center.margin-top,
    .threequarter,
    main#main {
        width: 95% !important;
        max-width: 95% !important;
        margin-left: auto !important;  
        margin-right: auto !important; 
        float: none !important;
    }

    /* 3. Strip browser's native 40px left padding on RSS lists */
    ul.wp-block-rss {
        padding-left: 0 !important;
        margin-left: 0 !important;
        padding-right: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        list-style-position: inside !important;
    }

    ul.wp-block-rss li {
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

/* ======================================================
   PAGE TITLE BANNER STYLING (Desktop & Mobile)
   ====================================================== */

/* Base Desktop Style */
.threequarter h3,
h3.page-title-banner {
    background-color: #b3ccff !important;
    font-size: 1.5rem;
    padding: 8px 12px;
}

/* Mobile Darker Background & Scaled Font */
@media screen and (max-width: 600px) {
    .threequarter h3,
    h3.page-title-banner {
        background-color: #b3ccff !important;
        font-size: 1.15rem !important;
        padding: 6px 10px;
    }
}