/**
Theme Name: Adbull ApS
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adbull-aps
Template: astra
*/






/* === LINJEHØJDER – TVUNGET TIL AT VINDE === */

/* Mobil – default */
h1, h1:not([class]) { line-height: 1.25 !important; }
h2, h2:not([class]) { line-height: 1.3  !important; }
h3, h3:not([class]) { line-height: 1.35 !important; }
h4, h4:not([class]) { line-height: 1.4  !important; }
h5, h5:not([class]) { line-height: 1.45 !important; }
h6, h6:not([class]) { line-height: 1.5  !important; }
body { line-height: 1.65 !important; }

/* Tablet */
@media (min-width: 641px) {
  h1, h1:not([class]) { line-height: 1.2  !important; }
  h2, h2:not([class]) { line-height: 1.25 !important; }
  h3, h3:not([class]) { line-height: 1.3  !important; }
  h4, h4:not([class]) { line-height: 1.35 !important; }
  h5, h5:not([class]) { line-height: 1.4  !important; }
  h6, h6:not([class]) { line-height: 1.45 !important; }
  body { line-height: 1.6 !important; }
}

/* Desktop */
@media (min-width: 1025px) {
  h1, h1:not([class]) { line-height: 1.15 !important; }
  h2, h2:not([class]) { line-height: 1.2  !important; }
  h3, h3:not([class]) { line-height: 1.25 !important; }
  h4, h4:not([class]) { line-height: 1.3  !important; }
  h5, h5:not([class]) { line-height: 1.35 !important; }
  h6, h6:not([class]) { line-height: 1.4  !important; }
  body { line-height: 1.6 !important; }
}





























/* Overordnet wrapper */
.my-articles-slider-wrapper {
  position: relative;
  margin: 2rem 0;
}

/* Viewport */
.my-articles-slider-viewport {
  overflow: hidden; /* Gælder som standard på desktop */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Track */
.my-articles-slider-track {
  display: flex;
  transition: transform 0.3s ease;
  will-change: transform;
  /* På mobil vil vi gerne have horizontal scroll, men håndteres via JS-tilpasning */
}

/* Hvert "card" */
.slider-item {
  flex: 0 0 33.3333%;
  box-sizing: border-box;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  margin: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.slider-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Kategori-badge: 14px */
.slider-category {
  font-size: 14px;
  color: #666;
  margin-bottom: 0.5rem;
}

/* Overskrift */
.slider-title {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

/* Uddrag */
.slider-excerpt {
  font-size: 0.9rem;
  color: #444;
}

/* Navigationsknapper øverst til højre (desktop) */
.slider-nav.top-right {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slider-btn {
  background: #fff;
  border: none;
  color: #333;
  cursor: pointer;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  line-height: 38px;
  text-align: center;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.slider-btn:hover {
  background: #f1f1f1;
}

/* "Dots" i bunden (desktop) */
.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.slider-dots button.dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border: none;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  padding: 0;
}
.slider-dots button.dot.active {
  background: #333;
}

/* 
   RESPONSIV TILPASNING:
   På skærme under 768px -> vis 1 card ad gangen
   og lad track være scrollbart.
*/
@media (max-width: 768px) {
  /* Skjul desktop-knapper og dots på mobil */
  .slider-nav.top-right,
  .slider-dots {
    display: none;
  }

  /* Gør, at kun 1 kort vises ad gangen */
  .slider-item {
    flex: 0 0 100%;
    margin: 0.5rem;
  }

  /* Gør track overscrollbart med "touch" på mobil */
  .my-articles-slider-viewport {
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
  }
  .my-articles-slider-track {
    transition: none; /* Deaktiver desktop-animation på mobil */
  }

  .slider-item {
    scroll-snap-align: start; /* Kortet snapper ind i viewport */
  }
}










.post-content h2 {
    position: relative;
    padding-left: 36px;
    padding-bottom: 24px;
}

.post-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: calc(100% - 24px); 
    width: 6px;
    background-color: #1356E3;
    border-radius: 16px;
}

.post-content img {
    border-radius: 16px;
}

/* Mobilversion */
@media (max-width: 600px) {
    .post-content h2 {
        padding-left: 20px;
        padding-bottom: 16px;
    }

    .post-content h2::before {
        width: 4px;
        height: calc(100% - 16px); /* justeret til mobilens nye mellemrum */
    }
}




