/*!
Theme Name: Outdoor Impact
Theme URI: https://them.es/starter
Author: HTP
Author URI: https://htp.gg
Description: 
Version: 3.6.0
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.2
License: GPL version 2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0
Tags: custom-background, custom-colors, featured-images, flexible-header, microformats, post-formats, rtl-language-support, theme-options, translation-ready, accessibility-ready
Text Domain: outdoorimpact
*/

/* Don't overwrite this file. Compile "/assets/main.scss" to "/build/main.css" */

/* From http://codex.wordpress.org/CSS */

.alignnone {
	margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
	display: block;
	margin: 5px auto 5px auto;
}

.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

a img.alignnone {
	margin: 5px 20px 20px 0;
}

a img.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 96%; /* Image does not overflow the content area */
	padding: 5px 3px 10px;
	text-align: center;
}
.wp-caption.alignnone {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
	margin: 5px 0 20px 20px;
}
.wp-caption img {
	border: 0 none;
	height: auto;
	margin: 0;
	max-width: 98.5%;
	padding: 0;
	width: auto;
}
.wp-caption p.wp-caption-text {
	font-size: 11px;
	line-height: 17px;
	margin: 0;
	padding: 0 4px 5px;
}

.gallery-item {
	display: inline-block;
	text-align: left;
	vertical-align: top;
	width: 50%;
}

.gallery-item a,
.gallery-item a:hover,
.gallery-item a:focus {
	-webkit-box-shadow: none;
	box-shadow: none;
	background: none;
	display: inline-block;
	max-width: 100%;
}

.gallery-item a img {
	display: block;
	-webkit-transition: -webkit-filter 0.2s ease-in;
	transition: -webkit-filter 0.2s ease-in;
	transition: filter 0.2s ease-in;
	transition: filter 0.2s ease-in, -webkit-filter 0.2s ease-in;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.gallery-item a:hover img,
.gallery-item a:focus img {
	-webkit-filter: opacity(60%);
	filter: opacity(60%);
}

.gallery-caption {
	display: block;
	text-align: left;
	padding: 0 10px 0 0;
	margin-bottom: 0;
}

.gallery-columns-1 .gallery-item {
	max-width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-columns-6 .gallery-caption,
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
	display: none;
}

.bypostauthor {
	font-weight: bold;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}

/* Gemensam styling för alla .btn */
.btn {
  font-size: 16px;
  border-radius: 0;
  font-weight: normal;
  font-style: normal;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
}

/* Vit bakgrund, svart text + border – används som "default"-knapp */
.btn-primary {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #000000;
}

/* Hover för btn-primary: helsvart bakgrund, vit text */
.btn-primary:hover,
.btn-primary:focus {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

/* Alternativ: svart bakgrund, vit text – används som "invers" */
.btn-inverse {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

/* Hover för btn-inverse: vit bakgrund, svart text */
.btn-inverse:hover,
.btn-inverse:focus {
  background-color: #ffffff;
  color: #000000;
  border-color: #000000;
}

.video-embed-section {
	  padding-top: 0 !important; 
	  padding-bottom: 0 !important;
	  background-color: #000000;
	  color: #ffffff;
	}
	
	.video-wrapper {
	  width: 100%;
	  max-width: 100%;
	  margin: 0 auto;
	}
	
	.video-embed-section .video-text p,
	.video-embed-section .video-quote p {
	  font-size: 1.25rem;
	}
	
	.video-quote blockquote {
	  font-style: italic;
	  opacity: 0.8;
	}
	
	/* Mobiljusteringar */
	@media (max-width: 576px) {
	  .video-embed-section .video-text p,
	  .video-embed-section .video-quote p {
		font-size: 1rem;
		padding: 0 1rem;
	  }
	}
.latest-news-section .news-image-wrapper {
	  overflow: hidden;
	  border-radius: 0.25rem; /* Valfritt: rundade hörn */
	}
	
	.latest-news-section .news-image-wrapper img {
	  display: block;
	  width: 100%;
	  height: auto;
	  object-fit: cover;
	  filter: grayscale(100%);
	  transition: filter 0.4s ease, transform 0.4s ease;
	}
	
	.latest-news-section .news-image-wrapper:hover img {
	  filter: grayscale(0%);
	  transform: scale(1.03);
	}
	
	/* Kortinnehåll (valfritt extra stil) */
	.latest-news-section .card-title {
	  font-size: 1.1rem;
	  font-weight: 600;
	}
	
	.latest-news-section .card-text {
	  font-size: 0.95rem;
	  color: #333;
	}
	
	.latest-news-section .text-success {
	  color: #00a651 !important; /* Justera om du har annan "green" */
	}
	
	.latest-news-section small.text-muted {
	  font-size: 0.85rem;
	  color: #888 !important;
	}
	.carousel-bg {
		  height: 75vh;
		  min-height: 400px;
		  background-size: cover;
		  background-position: center center;
		  background-repeat: no-repeat;
		  position: relative;
		  display: flex;
		  align-items: center;
		}
		
		.carousel-caption {
		  z-index: 2;
		}
		
		/* Optional: dark overlay on images */
		.carousel-bg::before {
		  content: "";
		  position: absolute;
		  inset: 0;
		  background: rgba(0, 0, 0, 0.4); /* adjust darkness here */
		  z-index: 1;
		}
		
		.carousel-caption > * {
		  position: relative;
		  z-index: 3;
		}
		
		/* Gör linjerna svarta */
		.navbar-toggler-icon {
		  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
		}
		
		/* Tar bort border och border-radius */
		.navbar-toggler {
		  border: none;
		  border-radius: 0;
		  outline: none; /* valfritt: tar bort fokusring i vissa browsers */
		  box-shadow: none; /* tar bort Bootstrap shadow vid fokus */
		  padding: 0.25rem 0.5rem; /* justera om du vill ha annan storlek */
		}
		
		/* Tar bort border även när knappen är aktiv */
		.navbar-toggler:focus,
		.navbar-toggler:active {
		  border: none;
		  border-radius: 0;
		  outline: none;
		  box-shadow: none;
		}
		::selection {
			  background: #000;
			  color: #fff;
			}
			
			/* Safari-specifik variant för bättre stöd */
			::-moz-selection {
			  background: #000;
			  color: #fff;
			}
			nav { text-transform: uppercase; }
			body {   font-family: 'Open Sans', sans-serif; }
		/*	* {
				  font-family: 'Open Sans', sans-serif !important;
				} */
			body a { color: #000; }
			body p a:hover { text-decoration: underline; }
			.footer-outdoor-impact ul li { margin-bottom: 2px; }
			
			.carousel-caption {
				  left: auto;
				  right: auto;
				}
				#header { padding: 40px; }
				
/* 1. Nollställ knapparna helt */
.carousel-control-prev,
.carousel-control-next {
  width: 4%;
  background: none !important;
  opacity: 1 !important;
}

/* 2. Nollställ ikonerna helt först */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none !important;
  width: 2rem;
  height: 2rem;
}

/* 3. Lägg till helt egna svarta pilar */
.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
  content: '';
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: solid black;
  border-width: 0 2px 2px 0;
  padding: 5px;
}

/* 4. Vänsterpil */
.carousel-control-prev-icon::before {
  transform: rotate(135deg);
}

/* 5. Högerpil */
.carousel-control-next-icon::before {
  transform: rotate(-45deg);
}		


/* Aktiv accordion-knapp (öppen fråga) */
.accordion-button:not(.collapsed) {
  background-color: #000;
  color: #fff;
}

/* Gör pilen vit på aktiv */
.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

/* Ändra pilens färg även vid hover */
.accordion-button:focus {
  box-shadow: none;
}