/*
Theme Name: Tool Theme
Author: Joakim Krook
Description: A website playground in tune with Bootstrap
Version: 1.0
Tags: bootstrap
*/
:root {
--primary: #259FB5;
--primary-hover: #0c7f93;

--secondary:#EAF6F8;
--secondary-hover:#bdeff8;

  --iceblue: #259FB5;
  --blue: #1e90ff;
  --white: #ffffff;
}

html {margin-top:0px!important;}

body {
  min-height: 75rem;
  padding-top: 4.5rem;
}

.roboto-condensed {
  font-family: "Roboto Condensed", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}


.roboto-condensed-100 {
  font-family: "Roboto Condensed", sans-serif; font-weight:100;

}

/* BUTTONS */


.btn-theme-primary {
  background-color:var(--primary);
  color:#FFF;
  font-weight:700;
  font-size: 0.9rem!important;
}
.btn-theme-primary:hover {
  background-color:var(--primary-hover);
  color:#FFF;
}

.btn-theme-secondary {
  background-color:var(--secondary);
  color:#259FB5;
  font-weight:700;
  font-size: 0.9rem!important;
}
.btn-theme-secondary:hover {
  background-color:var(--secondary-hover);
  color:#259FB5;
}

.scrolling-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  padding: 1rem 0;
}

.scrolling-wrapper a {
  display: inline-block;
  margin-right: 10px;
}

/* BUTTONS */

.navbar ul li a {font-weight: 300!important; font-size: 15px;}

.custom-thumbnail-class {
  min-height: 400px; /* Justera höjden efter behov */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 50;
  flex: 50%;
}

.accordion-button:not(.collapsed) {background-color: #FFFF;}
.accordion-button:focus {border:0px solid #FFFF;}

.newscardsml-wrapper {background-color:#f4f4f4; border-radius:10px 10px 10px 10px;}
.newscardsml-img {width:250px; height:100px; border-radius:10px 10px 10px 10px; background-size: cover;}
.newscardsml-txt {line-height:1.2rem; font-size:0.8rem;}

/* Responsive layout - makes a one column layout instead of a two-column layout */
@media (min-width: 992px) {

  .custom-text-class {color:#FFF;}  

.flex-container {
    display: flex;
    flex-direction: row;
    box-shadow:0 10px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    border-radius:10px 1px 10px 10px;  
    align-items: flex-start;
  }


.custom-text-class {margin-top:-10px;
position: relative; z-index: 100;}
}

/* Responsive layout - makes a one column layout instead of a two-column layout */
@media (max-width: 800px) {
    .flex-container {
      flex-direction: column;
    }

    .custom-text-class { color:#FFF;} 
  }

.footer-block a {font-color:#FFF;}

.obj { background-color: #24425f; border-radius: 5px;}

.header .container-fluid { margin-bottom:20px; }
.header .container-fluid .col { background-color:#222; color:#fff; padding: 30px; min-height:10rem; }
.header .container-fluid .col .header-content { align-items: center; display: flex; justify-content: center; }

/* WRAPPERS */
.txt-wrapper img {border-radius:0px; display: block; margin-right: 0px; padding-right: 0px;}


.txt-news-wrapper {
padding-left:10px;
padding-right:10px;
}

/* FONT TEXT & HEADLINES */
a {color: #24425f; font-weight: 500;}

.dm-serif-text-regular, h1,h2,h3,h4 {
    font-family: "DM Serif Text", serif;
    font-weight: 400;
    font-style: normal;
  }

  .roboto-regular {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-size:2rem;
  }

  .bebas-neue-regular {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
  }

  .dm-serif-display-regular {
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    font-style: normal;
  }


  .inter-regular {
    font-family: "inter", sans-serif;
    font-weight: 400;
    font-style: normal;
  }


  .noto-serif {
    font-family: "Noto Serif", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-variation-settings:
      "wdth" 100;
  }
  

 /* CARDS */
 
 .card-text { font-size:0.8rem; line-height:0.5rem; height:40px;}
 .card-body p { font-size:0.8rem; line-height:1.2rem;}


/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {}
.txt-wrapper { padding-left:15px; padding-right: 15px; line-height: 1.5rem;}
.headline-wrapper { padding-left:15px; padding-right: 15px;}
.category-info-wrapper {background-color:#f4f4f4; padding:20px; margin-bottom:20px; margin-top:10px; font-size:0.8rem; line-height:1.3rem;}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
	h1 { font-size: 32px;}
	h2 { font-size: 30px;}
	h3 { font-size: 25px;}
	h4 { font-size: 18px;}

  .category-info-wrapper {background-color:#f4f4f4; padding:20px; margin-bottom:20px; margin-top:20px; font-size:0.8rem; line-height:1.3rem;}

}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
	h1 { font-size: 32px;}
	h2 { font-size: 30px;}
	h3 { font-size: 25px;}
	h4 { font-size: 18px;}
    }


h1 {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-size:2rem;
  }

h2 {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size:1.5rem;
}

a.btn {font-size: 13px;}
  
body {
/* body {background-color: #f0e3dc; color: #24425f; #24425f;} */
  /*  font-family: "Inter", sans-serif; */
/*  font-family: "Roboto", sans-serif; */
-webkit-font-smoothing: antialiased;
  font-family: "Inter", serif;
  color:#1e1e1e;
  margin-top: Opx;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 30px;
/*  background-color: #efefef; */
  background-color: #fff;
}
  

.info-box {
    border-radius: 6px;
    background-color: #f1efee;
    padding: 25px;
    
}

.single-member .block-acf.block-testimonial {
    margin: 4rem -7rem;
}


.wp-block-buttons .wp-block-button__link {
    background-color: #447953; /* Bakgrund för varje knapp */
    color: #ffffff; /* Textfärg */
    padding: 12px 25px; /* Ökad padding för större knappar */
    border-radius: 2rem; /* Mindre avrundade hörn */
    font-weight: 300;
    margin-bottom: 1rem;
    margin-top: 1rem;
}


@media (max-width: 768px) {
    h1 {
        font-size: 24px; /* Mindre rubrik på mobil */
    }
}



.external-link-btn {
  display: grid; /* Stabil layout */
  grid-template-columns: 1.25em auto; /* Ikon + text */
  align-items: start;
  gap: 10px;
  padding: 10px 14px;
  margin:20px 0 20px 0px;
  color: #222;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
  line-height: 1.35;
  white-space: normal; /* Förhindra vertikal text i backend */
  overflow-wrap: anywhere;
}
.external-link-btn__text { display:block; grid-column: 2; }
.external-link-btn__icon { grid-column: 1; font-size: 1.1rem; line-height:1; color: inherit; margin-top: .15rem; }

/* När ikonen är av, växla till en-kolumnslayout så texten blir bred */
.external-link-btn--noicon { grid-template-columns: auto !important; }
.external-link-btn--noicon .external-link-btn__text { grid-column: 1 !important; }

/* Compact-läge */
.external-link-btn--compact { padding: 8px 12px; gap: 8px; }
.external-link-btn--compact .external-link-btn__icon { font-size: 1rem; margin-top: .1rem; }

/* Full bredd */
.external-link-btn--block { width: 100%; }

/* Gul (standard) */
.external-link-btn--yellow { background-color: #fff6dd; box-shadow: 2px 2px 0 #f4d97b; }
.external-link-btn--yellow:hover { background-color: #ffe9aa; box-shadow: 2px 2px 0 #f1c64f; transform: translateY(-1px); color: #000; }

/* Gråskala */
.external-link-btn--gray { background-color: #f2f2f2; box-shadow: 2px 2px 0 #cfcfcf; }
.external-link-btn--gray:hover { background-color: #e6e6e6; box-shadow: 2px 2px 0 #bfbfbf; transform: translateY(-1px); color: #111; }