/*
Theme Name: BHAK Eisenerz Theme 05/2025
Theme URI: https://www.bhak-eisenerz.at/home/
Author: Focused Ventures
Author URI: https://www.bhak-eisenerz.at/home/
Description: A custom Full Site Editing theme for [School Name].
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: school-theme // Must match your theme folder name
Requires at least: 6.0 // FSE features need recent WP versions
Tested up to: 6.4 // Or latest WP version
*/

/*
This file is primarily for theme info.
Most styling is handled via theme.json and global styles in the Site Editor.
You can add theme-specific custom CSS here if needed, but theme.json is preferred.
*/


/* Checklist Block Style */
.is-style-checklist {
    list-style: none !important; /* Override default list style */
    padding-left: 0; /* Reset padding, we'll add it to the items */
}

.is-style-checklist li {
    position: relative; /* Needed for absolute positioning of the pseudo-element */
    padding-left: 1.8em; /* Space for the icon + some gap. Adjust as needed. */
    margin-bottom: 0.5em; /* Optional: Adjust spacing between items */
    margin-left: 1em;
}

.is-style-checklist li::before {
    content: ''; /* Essential for pseudo-elements */
    display: inline-block; /* Allow width/height */
    width: 1em; /* Adjust size as needed */
    height: 1em; /* Adjust size as needed */

    /* --- Use SVG as a background image --- */
    background-image: url('assets/images/checkmark.svg'); /* Path relative to the CSS file */
    background-size: contain; /* Scale the image to fit */
    background-repeat: no-repeat;
    background-position: center center;

    /* --- Positioning the Icon --- */
    position: absolute;
    left: 0;
    top: 0.25em; /* Fine-tune vertical alignment. Adjust as needed. */

    /* --- Optional: Icon Color (if using SVG that supports currentColor) --- */
    /* If your SVG uses `fill="currentColor"`, you can control its color via CSS text color */
    /* color: var(--wp--preset--color--primary); */ /* Example using a theme.json color */
    /* Or just set a specific color: */

    /* --- Alternative: Using an Icon Font (e.g., Font Awesome) --- */
    /*
    content: '\f00c'; // Example checkmark unicode for Font Awesome
    font-family: 'Font Awesome 5 Free'; // Ensure font is loaded
    font-weight: 900; // Use '900' for Solid icons in FA5 Free
    position: absolute;
    left: 0;
    top: 0; // Adjust alignment as needed
    color: #4CAF50; // Set icon color
    */
}

.my-checkmark-icon path {
  fill: red; /* or any color */
}

/* Optional: Adjustments for nested lists */
.is-style-checklist ul,
.is-style-checklist ol {
   margin-left: 1.8em; /* Indent nested lists */
   /* If you want nested lists to have default bullets, add: */
   /* list-style: revert !important; */
}
/* If you want nested lists to ALSO be checklists, you might not need extra rules,
   or you might need to adjust padding/margins further */






.pulse-custom-button-wrapper {
  text-align: center;
  margin-top: 20px;
}

.pulse-custom-button {
  display: inline-block;
  background: #f3971f; /* Main brand color */
  color: white;
  text-decoration: none;
  padding: 20px 40px;
  border-radius: 60px;
  border: 5px solid rgba(255, 255, 255, 0.6);
  font-size: 20px;
  font-weight: 400;
  box-shadow: 0 0 0 0 rgba(243, 151, 31, 1); /* Pulsing color */
  animation: pulse2Shadow 2s infinite;
  transition: all 300ms ease;
  cursor: pointer;
  max-width: fit-content;
}

.pulse-custom-button-main {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pulse-custom-button-sub {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  text-align: center;
}

@keyframes pulse2Shadow {
  0% {
    box-shadow: 0 0 0 0 rgba(243, 151, 31, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(243, 151, 31, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(243, 151, 31, 0);
  }
}




/*
.pulse-custom-button-wrapper {
  text-align: center;
  margin-top: 20px;
}

.pulse-custom-button {
  display: inline-block;
  background: rgb(5, 220, 242);
  color: black;
  text-decoration: none;
  padding: 20px 40px;
  border-radius: 60px;
  border: 5px solid rgba(255,255,255,0.6);
  font-size: 20px;
  font-weight: 400;
  box-shadow: 0 0 0 0 rgba(50, 190, 204, 1);
  animation: pulse2Shadow 2s infinite;
  transition: all 300ms ease;
  cursor: pointer;
  max-width: fit-content;
}

.pulse-custom-button-main {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pulse-custom-button-sub {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  text-align: center;
}

@keyframes pulse2Shadow {
  0% {
    box-shadow: 0 0 0 0 rgba(50, 190, 204, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(50, 190, 204, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(50, 190, 204, 0);
  }
}
  */





/* grid (keep yours) */
.wp-block-query .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.6rem;
  list-style: none;
  padding: 0;
}

/* FIX: remove blockGap margin that staggers first row */
.wp-block-post-template.is-layout-flow > li {
  margin: 0 !important;
}

/* optional: if WP applies blockGap via the generic selector */
.wp-block-post-template.is-layout-flow > * + * {
  margin-block-start: 0 !important;
}

/* image normalization (keep) */
.wp-block-post-featured-image { aspect-ratio: 3/2; overflow: hidden; }
.wp-block-post-featured-image img { width:100%; height:100%; object-fit:cover; display:block; border-radius: 4px; }

/* neutralize alignfull/wide inside cards (if needed) */
.wp-block-post-template .alignfull,
.wp-block-post-template .alignwide { width:100%!important; max-width:100%!important; margin-left:0!important; margin-right:0!important; }

/* single post readability */
.single-entry {
    --single-header-width: 900px;
    --single-content-width: 760px;
}

.single-entry > .wp-block-group:first-of-type {
    max-width: min(100%, var(--single-header-width));
    margin-inline: auto;
}

.single-entry__layout {
    max-width: min(100%, var(--single-content-width));
    margin-inline: auto;
}

.single-entry .wp-block-post-title {
    line-height: 1.12;
    text-wrap: balance;
    margin-bottom: 0.5rem;
}

.single-entry .wp-block-post-date {
    color: var(--wp--preset--color--text-subtle, #6c757d);
    font-size: 0.95rem;
}

.single-entry__content {
    min-width: 0;
    font-size: clamp(1.03rem, 1rem + 0.22vw, 1.12rem);
    line-height: 1.72;
}

.single-entry__content > p,
.single-entry__content > ul,
.single-entry__content > ol {
    max-width: 68ch;
}

.single-entry__content .wp-block-image {
    margin-block: clamp(1rem, 2.6vw, 2rem);
}

.single-entry__content .wp-block-image img {
    width: 100%;
    height: auto;
    max-height: min(62vh, 640px);
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 782px) {
    .single-entry {
        --single-header-width: 100%;
        --single-content-width: 100%;
    }

    .single-entry .wp-block-post-title {
        line-height: 1.18;
    }
}

/* Mobile navigation polish */
@media (max-width: 782px) {
  /* Header spacing + logo scale */
  header .wp-block-group {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  header .custom-logo,
  header .wp-block-site-logo img {
    max-width: 150px;
    height: auto;
  }

  /* Keep toggle easy to hit */
  .grow-navigation .wp-block-navigation__responsive-container-open {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--wp--preset--color--border-color, #e9ecef);
    border-radius: 999px;
    padding: 8px;
    background: #fff;
  }

  /* Full-screen menu panel */
  .grow-navigation .wp-block-navigation__responsive-container {
    background: var(--wp--preset--color--white, #fff);
    padding: 88px 24px 28px;
  }

  .grow-navigation .wp-block-navigation__responsive-container.is-menu-open {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  }

  /* Link readability + touch targets */
  .grow-navigation .wp-block-navigation-item__content {
    display: block;
    font-size: 1.125rem;
    line-height: 1.35;
    padding: 12px 0;
    border-bottom: 1px solid var(--wp--preset--color--border-color, #e9ecef);
    color: var(--wp--preset--color--text-main, #343a40);
    text-decoration: none;
  }

}
