/*
Theme Name:     OG Sport Championship
Description:    OG Sport Theme that extends the OG Theme
Author:         Jonas Hellberg, Daniel Liljeberg & Mathias Olsson, OG Group.
Author URI:     http://www.oggroup.se
Template:       og-theme
Version:        2.0.0
*/

/*
@import url('https://fonts.googleapis.com/css2?family=Quantico:ital,wght@0,400;0,700;1,400;1,700&display=swap');
*/
@font-face {
    font-family: 'Quantico';
    src: url('/wp-content/themes/sport-championship/fonts/quantico-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: bold;
    font-display: swap;
}

:root
{
    --og-sport-primary-color: #164281;
    --og-sport-secondary-color: #FFD600;

    --og-sport-link-color: #00799E;
    --og-sport-link-dark-mode-color: #00b4eb;

	--og-sport-text-color: #444;
    --og-sport-text-disabled-color: #ededed;

    --og-sport-border-color: #ededed;

    --og-sport-border-medium-radius: 0.5rem;
    --og-sport-border-big-radius: 1rem;

    --og-sport-text-line-height: 1.61;

    --og-sport-footer-font-color: #ffffff;

    --og-sport-body-color: #ededed;
    --og-sport-main-color: #ffffff;

    --og-sport-child-nav-color: #555555;

    --og-sport-win-color: #2b792b;
    --og-sport-lost-color: #bd1b1b;
    --og-sport-draw-color: #2354c6; /* #d64309 */

    --og-sport-header-color: #000000;
    --og-sport-header-font: Quantico;

    --og-sport-highlight-color: #ffeef1;
}

/* DESKTOP */
@media only screen and (min-width: 768px)
{
    :root
    {
        --og-theme-header-height: 120px;
        --og-theme-header-logo-max-height: 80px;
        --og-theme-header-logo-max-width: 300px;

        --og-sport-text-xl-size: 3rem;
        --og-sport-text-large-size: 2rem;
        --og-sport-text-medium-size: 1.25rem;
        --og-sport-text-normal-size: 1.125rem;
        --og-sport-text-small-size: 1rem;
        --og-sport-text-xsmall-size: 0.875rem;
        --og-sport-text-xxsmall-size: 0.75rem;

        --og-sport-border-medium-radius: 0.5rem;
        --og-sport-border-big-radius: 1rem;

        --og-sport-space-xl-size: 4rem;
        --og-sport-space-large-size: 3rem;
        --og-sport-space-medium-size: 2rem;
        --og-sport-space-normal-size: 1.5rem;
        --og-sport-space-small-size: 1rem;
        --og-sport-space-xsmall-size: 0.75rem;
        --og-sport-space-xxsmall-size: 0.5rem;
    }
}

/* MOBILE */
@media only screen and (max-width: 768px)
{
    :root {
        --og-theme-header-height: 75px;
        --og-theme-header-logo-max-height: 50px;
        --og-theme-header-logo-max-width: 100%;

        --og-sport-text-xl-size: 2.25rem;
        --og-sport-text-large-size: 1.5rem;
        --og-sport-text-medium-size: 1.125rem;
        --og-sport-text-normal-size: 1.125rem;
        --og-sport-text-small-size: 1rem;
        --og-sport-text-xsmall-size: 0.875rem;
        --og-sport-text-xxsmall-size: 0.75rem;

        --og-sport-border-medium-radius: 0.5rem;

        --og-sport-space-xl-size: 3rem;
        --og-sport-space-large-size: 2rem;
        --og-sport-space-medium-size: 1.5rem;
        --og-sport-space-normal-size: 1rem;
        --og-sport-space-small-size: 0.875rem;
        --og-sport-space-xsmall-size: 0.75rem;
        --og-sport-space-xxsmall-size: 0.5rem;
    }
}

.dark-mode
{
    --og-sport-body-color: #121212;
    --og-sport-text-color: #e0e0e0;
    --og-sport-main-color: #2a2a2a;
    --og-sport-header-color: #e0e0e0;
    --og-sport-link-color: #00b4eb;
    --og-sport-highlight-color: #452525;
}

/*
Monochromatic Minimalism
    Background: #121212 (charcoal black)
    Primary Text: #e0e0e0 (light gray)
    Secondary Text: #b0b0b0 (medium gray)
    Borders/Dividers: #444444 (dark gray)
    Accent: #888888 (soft gray)

Muted
        Background: #2C2C2C (slate gray)
    Primary Text: #E4E4E4 (light gray)
    Accent 1: #A8DADC (light cyan)
    Accent 2: #FFC1CC (soft pink)
    Button/CTA: #B39CD0 (lavender)


*/

*
{
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: Roboto, Arial, Helvetica, sans-serif;
	color: var(--og-sport-text-color);
}


body
{
	max-width: 1200px;
	margin: auto;
    background-color: var(--og-sport-body-color);
}


table,
table a
{
    font-size: var(--og-sport-text-small-size);
}

table,
tr,
td
{
    border-spacing: 0;
}

table a
{
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
}

/* Container styling for the block */
table {
    margin: 2em 0;
    overflow-x: auto; /* Ensures horizontal scroll on small screens */

    width: 100%;
    font-family: sans-serif;
    font-size: 16px;
    text-align: left;
    border: 1px solid #e0e0e0;
    border-bottom-width: 2px;
    border-radius: var(--og-sport-border-medium-radius);
}

/* Header styling */
th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 12px 15px;
    /*border-bottom: 2px solid #dddddd;*/
}

/* Cell styling */
td {
    padding: 12px 15px;
    border-top: 1px solid #eeeeee;
    color: var(--og-sport-text-color);
}

/* Zebra striping (optional) */
/*
tr:nth-of-type(even) {
    background-color: #fcfcfc;
}
*/
/* Hover effect for rows */
tr:hover {
    background-color: #f1f1f1;
    transition: background-color 0.2s ease;
}




h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a
{
    text-decoration: none;
    color: var(--og-sport-header-color);
}

main
{
	background-color: var(--og-sport-main-color);
}

main p,
main li
{
    font-size: var(--og-sport-text-normal-size);
    line-height: var(--og-sport-text-line-height);
}

main p:not(.published-box p)
{
    margin-bottom: 1rem;
}

.wp-block-list
{
    margin-left: var(--og-sport-space-medium-size);
    margin-bottom: var(--og-sport-space-medium-size);
}

.wp-post-image img {
  border-radius: 8px;
}

#breadcrumbs
{
    margin-bottom: var(--og-sport-space-normal-size);
    font-size: var(--og-sport-text-small-size);
}

main section
{
    margin-bottom: var(--og-sport-space-medium-size);
}

main section header:not(.table-of-contents header)
{
    font-size: var(--og-sport-text-large-size);
    font-weight: bold;
    margin-top: var(--og-sport-space-medium-size);
    margin-bottom: var(--og-sport-space-small-size);
    display: inline-block;
    position: relative;
}

main section header + h3
{
    margin-top: 0;
}

main section header::after:not(.table-of-contents header::after)
{
    content: '';
    display: block;
    width: 100%;
    border-bottom: var(--og-sport-primary-color) 0.325rem solid;
}

h1,
h2,
h3,
h4,
h5,
main section header:not(.table-of-contents header)
{
	font-family: var(--og-sport-header-font);
    text-transform: uppercase;
    color: var(--og-sport-header-color);
    letter-spacing: -1px;
    line-height: 1.1;
}

h1
{
    margin-bottom: var(--og-sport-space-medium-size);
}

@media (min-width: 768px)
{
    h1
    {
        font-size: var(--og-sport-text-xl-size);
    }
}

@media (max-width: 768px)
{
    h1
    {
        font-size: var(--og-sport-text-large-size);
    }
}

h2
{
    margin-top: var(--og-sport-space-medium-size);
    margin-bottom: var(--og-sport-space-small-size);
    font-size: var(--og-sport-text-large-size);
}

h3
{
    margin-top: var(--og-sport-space-normal-size);
    margin-bottom: var(--og-sport-space-xsmall-size);
    font-size: var(--og-sport-text-medium-size);
}

body > header
{
	display: flex;
	align-items: center;
	background: var(--og-sport-primary-color);
	padding: var(--og-sport-space-small-size) var(--og-sport-space-medium-size);
	justify-content: space-between;
    position: relative;
    height: var(--og-theme-header-height);
}

body > header a
{
	text-decoration: none;
}

.site-title
{
    font-size: var(--og-sport-text-large-size);
    color: var(--og-sport-secondary-color);
    letter-spacing: -1px;
}

body > header img
{
	width: auto;
    max-width: auto;
    height: auto;
    max-height: var(--og-theme-header-logo-max-height);
    max-width: var(--og-theme-header-logo-max-width);
}

body > header nav
{
	max-width: 1100px;
}

body > footer
{
	align-items: center;
	background: var(--og-sport-primary-color);
	padding: var(--og-sport-space-medium-size);
}

body > footer a
{
	color: #ffffff;
}

body > footer li
{
    list-style: none;
}

body > footer *
{
    color: var(--og-sport-footer-font-color);
    line-height: var(--og-sport-text-line-height);
}

.content a
{
    color: var(--og-sport-link-color);
    font-weight: bold;
}

figure
{
    margin-bottom: var(--og-sport-space-normal-size);
}

.footer-header
{
    display: inline-block;
    font-size: var(--og-sport-text-normal-size);
    font-weight: bold;
    margin-bottom: var(--og-sport-space-small-size);
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 0.25rem solid var(--og-sport-secondary-color);
	padding-bottom: 0.25rem;
}

.footer-disclaimer,
.footer-gambling-disclaimer,
.footer-gambling-logos,
.footer-site-info
{
    font-size: var(--og-sport-text-xsmall-size);
}

.footer-gambling-disclaimer,
.footer-gambling-logos,
.footer-site-info
{
	margin-top: var(--og-sport-space-small-size);
}

.footer-gambling-logos
{
	display: flex;
	gap: 1rem;
}

.footer-gambling-logos *
{
	max-height: 40px;
}

body > footer nav,
body > footer .sister-sites
{
    margin-bottom: var(--og-sport-space-small-size);
}

footer nav li a,
body > footer .sister-sites li a
{
    /*padding: 0;
    margin-right: 1.5rem;
    margin-bottom: var(--og-sport-space-xsmall-size);*/
    padding: 0.75em;
}

article ul,
.entry-content ul,
article ol,
.entry-content ol
{
    margin-bottom: var(--og-sport-space-small-size);
    margin-left: var(--og-sport-space-small-size);
}

article ul,
.entry-content ul
{
    padding-inline-start: 10px;
}

article ol,
.entry-content ol
{
    padding-inline-start: 14px;
}

nav *,
.sister-sites *
{
	text-transform: uppercase;
}

.single .alignright img,
.page .alignright img
{
    max-width: 100%;
    /*max-width: 440px;*/
    height: auto !important;
}

@media only screen and (max-width: 768px)
{
    .single .alignright img,
    .page .alignright img
    {
        max-width: 65%;
    }
}

.sister-sites ul
{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.child-pages-navigation
{
    background-color: var(--og-sport-child-nav-color);
    padding-left: var(--og-sport-space-medium-size);
    padding-right: var(--og-sport-space-medium-size);
}

.child-pages-toggle
{
    display: none;
}

@media only screen and (max-width: 768px)
{
    .child-pages-navigation
    {
        padding: 0;
        position: relative;
    }

    .child-pages-navigation li
    {
        padding-left: var(--og-sport-space-medium-size);
        padding-right: 6em;
    }

    .child-pages-toggle
    {
        display: block;
        position: absolute;
        top: 0.5rem;
        right: 2rem;
        padding: 0.25em 0.75rem;
        border: none;
        font-weight: bold;
        font-family: arial;
        display: flex;
        justify-content: center;
        text-align: center;
        line-height: 1;
        font-size: 1.5rem;
    }
}

body > main
{
	padding: var(--og-sport-space-medium-size);
}

.button
{
    display: inline-block;
    padding: 0.5rem 1rem;
    border: var(--og-sport-primary-color) 2px solid;
    color: var(--og-sport-primary-color);
    text-decoration: none;
    font-weight: bold;
    border-radius: var(--og-sport-border-medium-radius);
    font-size: var(--og-sport-text-xsmall-size);
}

button.button
{
    background: transparent;
}

.button:hover,
.button:focus
{
    background-color: var(--og-sport-primary-color);
    color: white;
}

.button::after
{
    content: '»';
    font-size: var(--og-sport-text-medium-size);
    margin-left: 0.5rem;
    line-height: 0;
}

.show-all-games-btn
{
    margin-top: var(--og-sport-space-small-size);
}

.actionbutton
{
    background: var(--og-sport-primary-color);
    color: white !important;
}

/*
article.post .featured-image img {
  max-width: 480px;
  height: auto;
}
*/
/*******************************************/

.game-card
{
	display: flex;
	padding: var(--og-sport-space-small-size);
	text-decoration: none;
    flex-direction: column;
}

.game-card *
{
	font-size: var(--og-sport-text-small-size);
	text-transform: uppercase;
	text-decoration: none;
}

.game-card-top
{
    display: flex;
    justify-content: space-between;
}


.game-card > *:not(.game-card > *:first-child),
.game-card-teams > *:not(.game-card-teams > *:first-child)
{
	margin-top: 0.25rem;
}


.upcoming-game-card .game-card-info
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.game-card-team-info
{
	display: flex;
	align-items: center;
	font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-card-team-image
{
	width: 20px;
    min-width: 20px;
	height: 20px;
    max-height: 20px;
	margin-right: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card-team-image img
{
	max-width: 100%;
	max-height: 100%;
}

.game-card-team-row
{
	display: flex;
	justify-content: space-between;
    text-align: center;
    height: 25px;
}

.game-card-tv-icons
{
   display: flex;
   align-items: center;
}

.tv-icon
{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.75rem;
    margin-left: 0.25rem;
    line-height: 1.1;
    text-decoration: none;
}

img.tv-icon
{
    /*height: 42px;*/
    max-width: 32px;
}

span.tv-icon
{
    width: 50px;
    height: 50px;
    text-transform: uppercase;
}

.game-card-date,
.game-card-event
{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--og-sport-text-xsmall-size);
}

.game-card-team-result
{
	display: flex;
	gap: 0.125rem;
	justify-content: center;
	align-items: center;
}

.game-card-team-result .game-card-result-box
{
	line-height: 1;
	height: 20px;
	padding-left: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-right: 4px;
}

.game-card-result-extra-info
{
    font-size: var(--og-sport-text-xsmall-size);
}

.game-card-team-result-winner .game-card-result-box
{
	background: #2ac82a;
    color: white;
}

.game-card-team-result-draw .game-card-result-box
{
	background: var(--og-sport-draw-color);
    color: white;
}

.content-widget-footer
{
    margin-top: var(--og-sport-space-small-size);
}


.game-odds-card
{
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

@media (max-width: 640px) {
	.game-odds-card
	{
		gap: 0.5rem;
	}
}

.game-odds-card > *
{
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
}


.game-odds-card > * > img
{
	margin-left
}

/*******************************************/

.author-card
{
    border-color: var(--og-sport-border-color) !important;
    border-radius: var(--og-sport-border-medium-radius) !important;
    border-bottom-width: 2px !important;
}

.published-box img
{
    width: 96px !important;
    height: 96px !important;
}

/*******************************************/

.featured-games
{
	display: flex;
	margin-bottom: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
    position: relative;
    overflow: hidden;

    border: 1px solid var(--og-sport-border-color);
    border-radius: var(--og-sport-border-medium-radius);
    border-bottom-width: 2px;
}

.featured-games-left-button,
.featured-games-right-button
{
	display: flex;
	justify-content: center;
	font-weight: bold;
	align-items: center;
	width: 1rem;
    cursor: pointer;
    position: absolute;
    background-color: white;
    height: 100%;
    top: 0;
}

.featured-games-left-button
{
    left: 0;
}

.featured-games-right-button
{
    right: 0;
    border-left: 1px solid var(--og-sport-border-color);
}

.featured-games-left-button,
.featured-games-right-button
{
	display: flex;
	justify-content: center;
	font-weight: bold;
	align-items: center;
	width: 2rem;
    cursor: pointer;
    border: 0;
}


.featured-games-cards
{
	display: flex;
    position: relative;
    overflow: hidden;
}

.featured-games-cards .game-card
{
	width: calc( ( 1200px - 4rem ) / 5 );
    min-width: 200px;
/*	height: 110px;
	display: flex;*/
	border-left: 1px solid var(--og-sport-border-color);

}

.featured-games-cards .game-card-team-name {
    max-width: 85%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*
.featured-games .game-card:nth-child(n+7)
{
	display: none;
}

.featured-games .game-card:nth-child(2)
{
	border-left: 1px solid var(--og-sport-border-color);
}
*/

.featured-games .game-card-team-info
{
	max-width: 11rem;
}

/*******************************************/

.standings-wrapper
{
	border: 1px solid var(--og-sport-border-color);
    margin-bottom: 1rem;
    border-radius: var(--og-sport-border-medium-radius);
    border-bottom-width: 2px;
}

.standings-wrapper .content-subhead
{
    font-family: var(--og-sport-header-font);
    text-transform: uppercase;
    font-weight: 700;
    font-size: var(--og-sport-text-normal-size);
}

.standings-wrapper .filter-panel
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1em;
    font-size: var(--og-sport-text-small-size);
}

.standings-wrapper .team-name
{
	overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
}

.standings-wrapper table
{
    border: 0 !important;
    border-radius: 0 !important;
    margin: 0;
}


.standings_fixture_filter
{
    padding: 0.5em;
    font-size: var(--og-sport-text-small-size);
    border-radius: 0;
    border: solid 1px var(--og-sport-border-color);
    background: none;
}

.standing-buttons > *
{
    text-decoration: none;
    border-bottom: 4px solid var(--og-sport-border-color);
}

.standing-button-selected,
.standing-buttons > *:hover,
.standing-buttons > *:focus
{
    border-bottom: 4px solid var(--og-sport-secondary-color);
}

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

.standings-wrapper tbody tr:hover,
.current-team
{
	background-color: var(--og-sport-highlight-color);
}

.standings-wrapper tr > *
{
	text-align: center;
    min-width: 2rem;
    border-top: 1px solid var(--og-sport-border-color);
    margin: 0;
    padding: 0.75rem 0.125rem;
    width: auto;
}

.standings-wrapper thead tr > *
{
    text-transform: uppercase;
}


.standings-wrapper .team-name
{
    text-align: left;
    padding-left: var(--og-sport-space-xxsmall-size)
}

.standings-wrapper .team-name
{
    width: 250px !important;
}

.events-template-left .standings-wrapper .team-name
{
    max-width: 125px;
}

.standings-team-image
{
    float: left;
	width: 20px;
	height: 20px;
	margin-right: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.standings-team-image img
{
	max-width: 100%;
	max-height: 100%;
}

.table-col-place
{
    width: 50px !important;
    max-width: 50px !important;
}

.table-col-goal-points
{
    font-weight: bold;
}

.table-col-latest
{
    width: 150px;
}

.table-col-latest .box.f:before
{
    content: 'F';
    background: var(--og-sport-lost-color);
}

.table-col-latest .box.v:before
{
    content: 'V';
    background: var(--og-sport-win-color);
}

.table-col-latest .box.o:before
{
    content: 'O';
    background: var(--og-sport-draw-color);
}
.table-col-latest .box.ow:before
{
    content: 'ÖV';
    background: var(--og-sport-draw-color);
    font-size: 0.75rem;
}

.table-col-latest .box:hover
{
  filter: brightness(1.2);
}

.table-col-latest .box.ol:before
{
    content: 'ÖF';
    background: var(--og-sport-draw-color);
    font-size: 0.75rem;
}

.table-col-latest .box:before {
    height: 25px;
    width: 25px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-style: none !important;
    font-style: normal;
    font-weight: bold;
    margin-right: 0.125rem;
}

.table-col-latest {
    display: flex;
    justify-content: center;
    align-items: center;
}

.standing-labels > *
{
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5em;
    border-radius: 0.25rem;
    color: white;
    font-size: 0.875rem;
}

.standing-labels
{
    padding: 0.5rem 0 0 0.5rem;
}

/*******************************************/

.schedule-games
{
	border: 1px solid var(--og-sport-border-color);
    margin-bottom: 1rem;
    border-radius: var(--og-sport-border-medium-radius);
}

.schedule-games .game-card
{
	padding: 1rem;
	border-bottom: 1px solid var(--og-sport-border-color);
	width: 100%;
    display: flex;
    flex-direction: column;
}

.events-template-event-tabs
{
	display: flex;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.events-template-event-tab
{
    background: transparent;
    border-top: 0;
    border-left: 0;
    border-right: 0;
	border-bottom: 0.25rem solid var(--og-sport-border-color);
	padding-bottom: 0.25rem;
	margin-right: 1rem;
    cursor: pointer;
    white-space: nowrap;
    font-size: var(--og-sport-text-medium-size);
}

.events-template-event-tab:hover,
.events-template-event-tab:focus,
.events-template-event-tab-selected
{
    border-color: var(--og-sport-secondary-color);
}

.events-template-content
{
	display: flex;
}

.events-template-header
{
    font-size: var(--og-sport-text-medium-size);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/*******************************************/

.recent-posts-content
{
	display: flex;
}

.recent-post-meta
{
    display: flex;
    justify-content: space-between;
    text-align: center;
    margin-top: 0.5rem;
}

.post-card-image,
.recent-post-image,
.post-card-image-missing,
.recent-post-image-missing
{
    min-width: 239px;
    width: 239px;
    height: 239px;

    background-position: center;
    background-size: cover;
}

.post-card-image-missing,
.recent-post-image-missing
{
    border-radius: var(--og-sport-border-medium-radius);
    background-repeat: no-repeat;
    background-size: 50% auto;
    background-position: center;
    background-color: var(--og-sport-primary-color);
}

.post-card .post-card-image,
.post-card .post-card-image-missing,
.recent-posts-featured .recent-post-image,
.recent-posts-featured .recent-post-image-missing
{
    /*height: auto;*/
    border-top-right-radius: unset !important;
    border-bottom-right-radius: unset !important;
}

.recent-posts-featured .recent-post-image,
.post-card .post-card-image
{
    background-color: unset;
}

.post-card-title,
.recent-post-title
{
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.recent-post-title a
{
    font-size: var(--og-sport-text-medium-size);
	font-family: var(--og-sport-header-font);
    text-transform: uppercase;
	font-weight: bold;
    color: var(--og-sport-header-color);
    text-decoration: none;
    letter-spacing: -1px;
	line-height: 1.1;
}

@media (min-width: 768px)
{

    .first-recent-post
    {
        text-decoration: none;
    }

    .recent-posts-temp-image
    {
        background-size: 50%;
        background-color: var(--og-sport-primary-color);
    }

    .recent-featured-posts-content
    {
        display: flex;
    }


    .first-recent-post-image
    {
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        display: flex;
        align-items: end;
        border-top-right-radius: var(--og-sport-border-medium-radius);
        border-top-left-radius: var(--og-sport-border-medium-radius);
    }


    .first-recent-post-title
    {
        width: 100%;
        height: 5rem;
        /*background-color: rgba( 0, 0, 0, 0.9 );*/

        border-bottom-right-radius: var(--og-sport-border-medium-radius);
        border-bottom-left-radius: var(--og-sport-border-medium-radius);
        border-top: var(--og-sport-secondary-color) 4px solid;
    }

    .first-recent-post-title-text
    {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.first-recent-post-title
{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 0.5rem 1rem;
    /*background-color: rgba( 0, 0, 0, 0.9 );*/
    background-color: var(--og-sport-primary-color);
}

.first-recent-post-title-text
{
    color: #ffffff;
    text-decoration: none;
    font-size: var(--og-sport-text-normal-size);
}

.first-recent-post-date,
.first-recent-post-date *
{
    color: var(--og-sport-secondary-color);
    text-transform: uppercase;
}

.recent-featured-posts > .button
{
    margin-top: 1rem;
}

.recent-posts-right .recent-posts-featured > :last-child
{
  margin-bottom: 0 !important;
}

.post-card-event-name,
.recent-post-event-name
{
    color: var(--og-sport-secondary-color);
    margin-bottom: 0.125rem;
    font-size: var(--og-sport-text-small-size);
    text-transform: uppercase;
}


.recent-posts-featured
{
	position: relative;
	display: flex;
	flex-direction: column;
	align-content: stretch;
	justify-items: stretch;
}


.recent-posts,
.recent-posts-featured
{
	width: 100% !important;
}

.recent-posts-featured
{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between
}

.recent-posts-featured > *
{
	width: calc( 50% - 1rem );
}

@media (max-width: 768px)
{
	.recent-posts-featured > *
	{
		width: calc( 100% );
	}
}





.post-card
{
	display: flex;
    text-decoration: none;
    margin-bottom: 1rem;
}

.post-card > *
{
	display: flex;
}

.post-card > *:nth-child(1)
{
	/*width: 39%;*/
    border-radius: var(--og-sport-border-medium-radius);
}

.post-card > *:nth-child(2)
{
	width: 100%;
}

.post-card-title
{
	background-color: var(--og-sport-primary-color);
    border-top-right-radius: var(--og-sport-border-medium-radius);
    border-bottom-right-radius: var(--og-sport-border-medium-radius);
}

.post-card-title
{
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 var(--og-sport-space-small-size) 0 var(--og-sport-space-small-size);
	border-left: var(--og-sport-secondary-color) 4px solid;
	font-size: var(--og-sport-text-small-size);
}

.post-card-date
{
	color: var(--og-sport-secondary-color);
	margin-bottom: 0.5rem;
	text-transform: uppercase;
}

.post-card-title-text
{
	color: #ffffff;
	text-decoration: none;
	font-size: var(--og-sport-text-normal-size);
	width: 100%;
}

.event-schedule-row-games
{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.event-schedule-row-games > *
{
    width: calc( 100%/3 - 2rem/3 );
	border: var(--og-sport-border-color) 1px solid;
    border-radius: var(--og-sport-border-medium-radius);
    border-bottom-width: 2px;
}

.teams-list,
.teams-list table
{
    border: 0;
}

.teams-list tbody
{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
}

.teams-list tbody > tr
{
    display: flex;
    flex-wrap: wrap;
    flex-basis: 200px;
    justify-content: center;
    height: unset;
    background: none !important;
    margin-bottom: 1rem;
}

.teams-list tr > td
{
    text-align: center;
}

.teams-list tr > td:first-child img
{
    border-radius: 0.5rem;
    max-height: 150px;
    max-width: 150px;
}

.teams-list tbody > tr td
{
    font-size: var(--og-sport-text-medium-size);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
}

/* widgets */
.related-posts ul
{
    list-style: none;
}

.published-box
{
    line-height: var(--og-sport-text-line-height);
}

.published-box
{
    padding: 1rem;
    border: 1px solid var(--og-sport-border-color);
    border-radius: var(--og-sport-border-medium-radius);
    border-bottom-width: 2px;
}


.post-tags ul
{
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-left: 0;
    margin: 1rem 0 0 0;
}

.tag-item
{
    white-space: nowrap;
}

.tag-item a
{
    display: block;
    text-decoration: none;
    background: #eeeeee;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 1rem;
}

@media (min-width: 480px) {
	/*.page:not(.home) .event-schedule-row-games > *
	{
		max-width: calc(100%/3 - 2rem/3);
	}*/

	.post .event-schedule-row-games > *
	{
		width: 50% !important;
		flex: 1 1 calc(100%/3 - 2rem/3);
		min-width: 368px;
	}
}

@media (min-width: 768px)
{
    body > header nav
    {
        margin-left: 0.5rem;
    }

    .recent-featured-posts-content > *
    {
        width: calc(50% - 1rem);
    }

    .first-recent-post-image
    {
        height: 430px;
    }

    .first-recent-post
    {
        margin-right: 1rem
    }

    .recent-posts-right
    {
        margin-left: 1rem
    }

    .recent-posts-featured > *
    {
        position: items;
        height: 100%;
        max-height: 50%;
    }

    .post-card
    {
        height: calc( 255px - 1rem );
    }

    .recent-posts-featured > *:nth-child(1)
    {
        margin-bottom: 2rem;
    }

    .recent-posts-content > *
    {
        width: calc( 25% - 1.5rem );
    }

    .recent-posts-content > *:nth-child(2)
    {
        margin-left: 2rem;
        margin-right: 1rem;
    }

    .recent-posts-content > *:nth-child(3)
    {
        margin-left: 1rem;
        margin-right: 2rem;
    }

    .events-template-content > *
    {
        width: 50%;
    }

    .events-template-right
    {
        margin-left: 1rem;
    }

    .events-template-left
    {
        margin-right: 1rem;
    }

    .standings-wrapper .header
    {
        padding: 1rem;
    }

    .standing-buttons > *
    {
        margin: 0.25em 0 0.25em 1em;
    }

    .standing-buttons
    {
        flex-grow: 1;
        display: flex;
        justify-content: end;
    }

    figure.alignleft
    {
        float: left;
        margin-right: var(--og-sport-space-normal-size);
        max-width: 40%;
        width: 440px;
    }

    figure.alignright
    {
        float: right;
        margin-left: var(--og-sport-space-normal-size);
        max-width: 40%;
        width: 440px;
    }
}


@media (max-width: 1100px)
{
    .events-template-left .standings-wrapper .table-col-latest
    {
        display: none;
    }
}

@media (max-width: 1000px)
{
    .events-template-left .standings-wrapper .table-col-latest,
    .events-template-left .standings-wrapper .table-col-won,
    .events-template-left .standings-wrapper .table-col-lost,
    .events-template-left .standings-wrapper .table-col-overtime-win,
    .events-template-left .standings-wrapper .table-col-overtime-lost,
    .events-template-left .standings-wrapper .table-col-drawn
    {
        display: none;
    }
}

@media (max-width: 900px)
{
    .game-card
    {
        flex-basis: calc( 50% - 1rem );
    }
}



@media (max-width: 1000px)
{
  .first-recent-post-image {
    height: 300px;
  }

	.post-card-image,
	.recent-post-image,
    .post-card-image-missing,
    .recent-post-image-missing
	{
			min-width: 175px;
			width: 175px;
			height: 175px;
	}

	.post-card-title
	{
		padding: 8px;
	}

	.post-card {
    height: 175px;
  }
}

@media (max-width: 768px)
{

  /*******  Ändringar av Mathias - 2026-06-10 **/
/*
  .first-recent-post-image
  {
      height: 20vw !important;
  }

  .first-recent-post-date {
    margin-bottom: 0.5rem !important;
  }
*/
  /* tas bort efter VM
  .recent-post-image {
    display: none !important;
  }
  */

  .recent-posts-featured > *:nth-child(1)
  {
    margin-bottom: 1rem !important;
  }

  /*******  Slut på ändringar av Mathias      **/

  /*
    .first-recent-post-image
    {
        height: 50vw;
        display: flex;
        align-items: end;
    }
    */
    .post-card .post-card-title
    {
        padding: 0 var(--og-sport-space-xsmall-size) 0 var(--og-sport-space-small-size);
    }

    .first-recent-post
    {
        display: flex;
        /*height: 150px;*/
        text-decoration: none;
    }

    .first-recent-post > *
    {
        display: flex;
    }

    .post-card-image,
    .first-recent-post > *:nth-child(1)
    {
        /*width: 39%;*/
        min-width: 175px;
        width: 175px;
        height: 175px;
    }

    .first-recent-post > *:nth-child(2)
    {
        /*width: 61%;*/
    }

    .first-recent-post-title
    {
        border-left: var(--og-sport-secondary-color) 4px solid;
        border-top-right-radius: var(--og-sport-border-medium-radius) !important;
        border-bottom-right-radius: var(--og-sport-border-medium-radius) !important;
    }

    .first-recent-post-image
    {
        background-position: center;
        background-size: cover;
        height: auto;
        border-top-left-radius: var(--og-sport-border-medium-radius) !important;
        border-bottom-left-radius: var(--og-sport-border-medium-radius) !important;
    }

    .first-recent-post-title
    {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        padding: var(--og-sport-space-xsmall-size)  var(--og-sport-space-small-size) !important;
    }

    .first-recent-post-date
    {
        color: var(--og-sport-secondary-color);
        /*margin-bottom: 0.5rem;*/
        text-transform: uppercase;
    }

    .recent-featured-posts-content
    {
        flex-direction: column;
    }

    .recent-featured-posts-content > *
    {
        width: 100%;
    }

    .recent-posts-featured > *:nth-child(1)
    {
        margin-bottom: 1rem;
    }

    .recent-posts-content
    {
        flex-wrap: wrap;
    }

    .recent-posts-content > *
    {
        width: calc( 50% - 0.5rem );
    }

    .recent-posts-content > *:nth-child(odd)
    {
        margin-right: 0.5rem;
    }

    .recent-posts-content > *:nth-child(even)
    {
        margin-left: 0.5rem;
    }

    .recent-posts-content > *
    {
        margin-bottom: 1rem;
    }

    .first-recent-post
    {
        margin-bottom: 1rem
    }

    .events-template-content
    {
        flex-direction: column-reverse;
    }

    .events-template-right
    {
        margin-bottom: 2rem;
    }

    .standings-wrapper .table-col-latest,
    .standings-wrapper .table-col-won,
    .standings-wrapper .table-col-lost,
    .standings-wrapper .table-col-drawn
    {
        display: none;
    }

    .events-template-left
    {
        margin-bottom: 1rem;
    }

    .post-card
    {
        /*height: 150px;*/
    }

    .post-card-title-text
    {
        /*text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;*/
        /*min-height: 75px;*/
    }

    .standings-wrapper .filter-panel
    {
        flex-direction: column;
        align-items: center;
    }

    .standings-wrapper .filter-panel > *
    {
        width: 100%;
        margin-bottom: 1rem;
    }

    .standing-buttons
    {
        display: flex;
        justify-content: space-between;
        padding: var(--og-sport-space-normal-size);
    }

    .standing-buttons > *
    {
        width: 25%;
        text-align: center;
    }

    .standings-wrapper .content-subhead
    {
        margin: 0.5rem;
    }

    .standings-wrapper .filter-panel
    {
        padding-left: 1em;
        padding-right: 1em;
    }

    .standings-wrapper .team-name
    {
        /*width: 100px;*/
        max-width: 100px;
    }

    figure
    {
        text-align: center;
    }
}

@media (max-width: 640px)
{
    .game-card
    {
        flex-basis: 100%;
    }
}


@media (max-width: 480px)
{
    body > main
    {
        padding: var(--og-sport-space-small-size);
    }

    .child-pages-navigation
    {
        position: relative;
        padding-left: 0;
        padding-right: 0;
    }

    .child-pages-navigation ul
    {
        overflow: hidden;
    }

    .child-pages-toggle
    {
        display: block;
        border: 0;
        content: '';
        position: absolute;
        right: 0;
        top: 2px;
        padding: 0;
        background-color: transparent;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3C!--! Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --%3E%3Cpath fill='%23ffffff' d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-size: 1rem;
        background-position: center;
        width: 3rem;
        height: 3rem;
        margin-right: 0.5rem;
        cursor: pointer;
    }

    .child-pages-toggle:hover
    {
        background-color: rgba(0, 0, 0, 0.25);
    }

    figure
    {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    figure *
    {
        width: 100%;
        height: auto;
    }

    .button
    {
        padding-top: 1rem;
        padding-bottom: 1rem;
        width: 100%;
        text-align: center;
    }

    .recent-posts-content > * {
        width: 100%;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    footer nav ul,
    footer .sister-sites ul
    {
        flex-direction: column;
    }



	.post-card-image,
	.recent-post-image,
    .first-recent-post > :nth-child(1)
	{
        min-width: 125px;
        width: 125px;
        height: 125px;
	}

	.post-card,
    .first-recent-post
    {
        height: 125px;
    }

    .post-card-title,
    .first-recent-post-title
    {
        padding: 0 8px !important;
    }

    .post-card-date
    {
        margin-bottom: 0 !important;
    }

    .post-card-title-text,
    .first-recent-post-title-text
    {
        font-size: 1rem !important;

    }

    .first-recent-post-title
    {
        justify-content: center;
    }
}


.events-template-event-tabs
{
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
}

.events-template-event-tabs.dragging
{
    cursor: grabbing;
    scroll-behavior: auto;
}

.events-template-event-tab
{
    flex: 0 0 auto;
}



.faq-item-question
{
    margin-top: 0;
}


@media only screen and (min-width: 640px )
{
	 .post-list
	{
		display: flex;
		flex-wrap: wrap;
	}

	.post-list > *
	{
		flex-basis: calc(50% - 1rem);
	}

	.post-list > *:nth-child(odd)
	{
		margin-right: 1rem;
	}
}


@media only screen and (max-width: 800px)
{
	.post-list
	{
		display: block;
	}
}



.carousel.dragging
{
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

.carousel
{
    cursor: grab;
    cursor: -webkit-grab;
    /*overflow-x: auto;*/
    scroll-behavior: smooth;
}


#dark-mode-toggle {
  border: none;
  background: none;
  cursor: pointer;
}

.cookie-notice-container *
{
    color: #ffffff !important;
}




.push-box
{
	margin: 1rem;
	padding: 1rem;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	line-height: 2;
	background: white;
	background: green;
}


.push-box * {
	font-family: var(--og-sport-header-font);
			text-align: center;
	color: white;
}

.push-box-link {
	display: block;
		background: darkorange;
	color: white;
	padding: 0.5em 2em;
	margin-bottom: 1rem;
	border-bottom: 4px brown solid;
	text-decoration: none;
}

.push-box-header
{
	margin: 1rem;
		text-transform: uppercase;

		letter-spacing: -1px;
		line-height: 1.1;
	font-size: 2rem;
}

.push-box-footer
{
	font-size: 0.825rem;
	font-style: italic;
}

@media (max-width: 640px) {
  .push-box-header {
    font-size: 1.5rem;
  }
}



.banner-desktop > *,
.banner-mobile > *
{
	margin: 1rem 0;
}

@media (min-width: 768px) {
  .banner-desktop {
    display: block;
  }

	.banner-mobile {
    display: none;
  }
}

@media (max-width: 768px) {
  .banner-mobile {
    display: block;
  }

	.banner-desktop {
    display: none;
  }
}


@media (min-width: 768px) {
  .hide-for-small-only {
    display: block;
  }

	.show-for-small-only {
    display: none;
  }
}

@media (max-width: 768px) {
  .show-for-small-only {
    display: block;
  }

	.hide-for-small-only {
    display: none;
  }
}

#odds-annons-top
{
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}
