/*
Theme Name: Tema för DE bas på GoJ
Theme URI: 
Author: Digitala Elle
Author URI: 
Description: Ett tema som byggs på GoJ för DE bas
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tema-for-de-bas-pa-goj
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* ---------------------------------------------------------  DÖLJ MOBIL  --------------------------------------------------------- */

/* Dölj på mobilen */
@media (max-width: 782px) {
  .hide-mobile  {
    display: none !important;
  }
}


/* ---------------------------------------------------------  DÖLJ DATOR  --------------------------------------------------------- */


/* Dölj på dator */
@media (min-width: 782px) {
  .hide-desktop {
    display: none !important;
  }
}




/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}


/* ----------- Hero bild + knapp ----------------- */

/* --- Hero-område med bild --- */
.hero-area {
  position: relative;          /* bas för absolut positionering */
  padding-bottom: 4rem;        /* ger lite luft under bilden för knappen */
}

/* --- Knappen ska ligga ovanpå bilden, centrerad --- */
.hero-area .wp-block-button.hero-button {
  position: absolute;
  left: 48%;
  top: 70%;               /* justera upp/ner efter smak */
  transform: translateX(-50%);
  margin: 0 !important;
  z-index: 5;
}



/* Mobil – flytta ner knappen */
@media (max-width: 782px) {
  .hero-area .wp-block-button.hero-button {
    top: 60%;   /* justera tills det känns bra på mobilen */
  }
}



/* Knappen får egen bredd, inte 100% */
.hero-area .wp-block-button.hero-button .wp-block-button__link {
  width: auto !important;
  display: inline-block !important;
  margin: 0 !important;        /* nollställ ev. tidigare margin-top-hack */
}


/* ------------ Hero bild + knapp  SLUT -------------- */

/* --------   Textblock med bg -------- */

.hero-area .text-box {
  position: absolute;
  left: 40%;
  top: 50%;                /* justera vertikal position */
  transform: translate(-50%, -50%); 
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  display: inline-block;
  max-width: 80%;
  line-height: 1.5;
  z-index: 50;
  margin: 0;               /* ingen margin behövs */
}


/* Mobil */
@media (max-width: 782px) {
  .text-box {
  
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  max-width: 90%;
  line-height: 1.5;
  z-index: 50;
}
}




/* --------   Parallax design -------- */

/* Wrapper på Group-blocket */
.wp-block-group.hero-quote-wrapper {
  width: 80vw !important;
  max-width: none !important;

  position: relative;
  left: 50%;
  transform: translateX(-50%);

  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  padding: 0.8rem 0.6rem;
  border-radius: 14px;

  display: flex;
  justify-content: center;
}

/* Texten på Stycke-blocket */
.wp-block-group.hero-quote-wrapper p.hero-title {
  width: 100%;
  margin: 0 !important;

  /* Skalar mer på små skärmar för att undvika att texten kapas */
  font-size: clamp(1.4rem, 3.2vw, 5.6rem) !important;
  line-height: 1.05 !important;

  color: #fffcf9 !important;

  white-space: nowrap;
  overflow: visible !important;
  text-overflow: clip !important;

  text-align: center;
}





/* --------   Parallax design slut -------- */



/* --------   Textblock med bg SLUT -------- */


/* Inställning för att footern ska stanna längst ner på sidor med lite innehåll. */

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wp-site-blocks {
    display: flex;
    flex-direction: column;
    flex: 1;
}

main {
    flex: 1;
}

footer.wp-block-template-part {
    margin-top: auto;
}

/* --------   SLUT -------- */



/* Tar bort ramen kring länkar */

a:focus {
    outline: none;
}

/* --------   SLUT -------- */




header.wp-block-template-part .wp-block-group.has-global-padding {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}



/* Ger rätt bakgrundsfärg på mailchimps hjälptext */

.helper_text {
    background-color: #fdfbf7 !important;
}

/* --------   SLUT -------- */


/* --------   Stjärnan högst upp -------- */

.star-top {
  position: relative;
  z-index: 50;
}

/* --------   SLUT -------- */



/* --------   Centrerar topbilden på Gundstunder -------- */

.wp-block-group.center-bg,
.wp-block-cover.center-bg {
  background-position: 50% 50% !important;   /* tvingar centrerat fokus */
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* --------   SLUT -------- */


/* Alla UL-listor i innehållet får stjärn-bullets */
.entry-content ul,
.wp-block-post-content ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.entry-content ul li,
.wp-block-post-content ul li {
  position: relative;
  padding-left: 32px;      /* avstånd från stjärna till text */
  margin-bottom: 0.6rem;
}

.entry-content ul li::before,
.wp-block-post-content ul li::before {
  content: "";
  background-image: url("https://gojevent.se/wp-content/uploads/2025/11/GOJ-event-stjarna-7.png");
  background-size: 20px 20px;  /* storlek på stjärnan */
  background-repeat: no-repeat;
  width: 20px;
  height: 20px;
  position: absolute;
  left: 0;
  top: 0.15rem;             /* justera vertikalt vid behov */
}

/* --------   SLUT -------- */


/* Mailchimp Grundläggande formulärstil */

/* Själva formulärkortet */
#mc_embed_shell,
#mc_embed_signup {
  background: #000000 !important;
  color: #fdfbf7 !important;
  padding: 2rem !important;
  border-radius: 12px;
}

/* Rubrik och brödtext i formuläret */
#mc_embed_signup h2,
#mc_embed_signup p,
#mc_embed_signup .indicates-required,
#mc_embed_signup label,
#mc_embed_signup .mc-field-group strong {
  color: #fdfbf7 !important;
}

/* Vanliga inputs + select */
#mc_embed_signup .mc-field-group input,
#mc_embed_signup .mc-field-group select {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  background: #111111 !important;
  border: 1px solid #444444 !important;
  border-radius: 999px !important;
  color: #fdfbf7 !important;
  box-sizing: border-box;
}

#mc_embed_signup .mc-field-group input::placeholder {
  color: #c9c5bd !important;
}

/* Submit-knapp */
#mc_embed_signup input.button {
  background: #c57a3a !important;
  color: #000000 !important;
  padding: 0.9rem 2.2rem !important;
  border-radius: 999px !important;
  border: none !important;
  font-weight: 600;
  cursor: pointer;
}

#mc_embed_signup input.button:hover {
  background: #e08d4a !important;
}

/* Fel- och lyckomeddelanden */
#mc_embed_signup #mce-responses {
  margin-top: 1rem;
}

#mc_embed_signup div.response {
  display: none;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

#mc_embed_signup #mce-error-response {
  background: #3b0000 !important;
  color: #ffb3b3 !important;
}

#mc_embed_signup #mce-success-response {
  background: #002d1f !important;
  color: #9affd6 !important;
}

/* Inline-feltext */
#mc_embed_signup .mce_inline_error {
  background: none !important;
  color: #ff8a8a !important;
  margin-top: 0.3rem;
  font-size: 0.86rem;
}

#mc_embed_signup input.mce_inline_error {
  border-color: #ff8a8a !important;
}


#mc_embed_signup .helper_text {
    color: #ddb067 !important;
    margin-top: 2px;
    display: inline-block;
    padding: 3px;
    background-color: #000 !important;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: normal;
    z-index: 1;
}


/* ----- 1. Rätt stil på CHECKBOXEN ----- */

/* Gör så att globala input-stilar inte gäller checkboxen i Mailchimp-grupper */
#mc_embed_signup .mc-field-group.input-group input[type="checkbox"] {
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

/* Checkbox + label på samma rad, utan extra indrag */
#mc_embed_signup .mc-field-group.input-group ul {
  list-style: none;
  padding-left: 0 !important;
  margin: 0 !important;
}

#mc_embed_signup .mc-field-group.input-group ul li {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* ----- 2. Ta bort stjärnan (kommer från din globala custom-lista) ----- */

#mc_embed_signup .mc-field-group.input-group ul li::before {
  content: none !important;
}





  /* ÅTERSTÄLL KNAPPENS STANDARDSTIL FRÅN MAILCHIMP */
#mc_embed_signup .button,
#mc_embed_signup input.button,
#mc_embed_signup input[type="submit"] {
  height: auto !important;
  line-height: normal !important;
  width: auto !important;
  display: inline-block !important;
  padding: 0.9rem 2.4rem !important;
  border-radius: 999px !important;
  border: none !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

/* VÅR EGNA KNAPPDESIGN */
#mc_embed_signup input.button {
  background: #c57a3a !important;
  color: #000000 !important;
  font-weight: 600 !important;
  text-align: center !important;
  font-size: 1rem !important;
  cursor: pointer !important;
}

/* Hover */
#mc_embed_signup input.button:hover {
  background: #e08d4a !important;
}


/* Centrera hela formuläret utan att centrera texten */
#mc_embed_shell,
#mc_embed_signup,
#mc_embed_signup #mc-embedded-subscribe-form {
  max-width: 520px;                 /* valfri bredd */
  margin-left: auto !important;
  margin-right: auto !important;
}


/* --------   SLUT mailchimp -------- */