/**
Theme Name: FAS Förbund Astra Child
Author: Cogwork AB
Author URI: https://cogwork.se/
Description: Astra child theme for Förbundet Aktiva Seniorer. Includes Cogwork design, icons, and block patterns.
Version: 1.0.3
Template: astra
Text Domain: fas-forbund-astra-child
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

.wp-block-post a.more-link.cwButtonLink {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.wp-block-post a.more-link.cwButtonLink:hover {
  background-color: #005177;
}

@media screen and (min-width: 850px) {
  .fluga {
    position: absolute !important;
    top: -60px;
    left: -20px;
  }
}

/* Design Simple Yearly Archive shown on Reportage page*/

.sya_container > ul {
  list-style-type: none;
}

#main .sya_container > ul li {
  font-size: 13px !important;
}

#main .sya_container > ul li a {
  font-size: 13px !important;
}

/* -----------------------------------------
   ASTRA NORMAL MENU — CUSTOM STYLING FOR FAS
------------------------------------------*/

.site-primary-header-wrap {
  background-color: var(--ast-global-color-6);
  margin: 0;
}

.main-header-menu .menu-item:hover > .sub-menu {
  display: block;
}

.main-header-menu .menu-item .sub-menu .menu-item:hover > .sub-menu {
  display: block;
}

.ast-primary-header-bar {
  background: #e7e7e7;
}

#ast-hf-menu-1 > .menu-item > .menu-link {
  height: 46px !important;
  padding: 0 18px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 20px !important;
  font-weight: 600 !important;

  color: #425c8a !important;
  background: transparent !important;

  transition: all 0.25s ease;
}

/* ACTIVE (current page) */
#ast-hf-menu-1 > .current-menu-item > .menu-link,
#ast-hf-menu-1 > .current-menu-ancestor > .menu-link {
  color: #ececec !important;
  background: #0077bb !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* HOVER TOP LEVEL */
#ast-hf-menu-1 > .menu-item:hover > .menu-link {
  color: #ececec !important;
  background: #0077bb !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Remove Astra arrow SVG color change */

/* ============= SUBMENUS ============= */

#ast-hf-menu-1 .sub-menu {
  background: #ffffff !important;
  border-radius: 8px !important;
  /* padding: 8px 0 !important; */
  margin-top: 6px !important;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
  min-width: 220px !important;
}

/* Submenu items */
#ast-hf-menu-1 .sub-menu .menu-item > .menu-link {
  display: block !important;
  width: 100% !important;

  padding: 8px 18px !important;
  border-radius: 4px !important;

  font-size: 18px !important;
  font-weight: 700 !important;

  color: #425c8a;
  background: transparent !important;

  transition: all 0.25s ease;
}

/* Submenu item hover */
#ast-hf-menu-1 .sub-menu .menu-item:hover > .menu-link {
  background: #425c8a !important;
  color: #ffffff !important;
}

/* Arrow icons inside submenu items */
#ast-hf-menu-1 .sub-menu .menu-item .ast-arrow-svg path {
  fill: #425c8a !important;
}

/*
#ast-hf-menu-1 .sub-menu .menu-item:hover .ast-arrow-svg path {
    fill: #ffffff !important;
}
*/
/* THIRD-LEVEL FIX (so they stack correctly) */
#ast-hf-menu-1 .sub-menu .sub-menu {
  margin-left: 0 !important;
  left: 100% !important;
  top: 0 !important;
}

#ast-hf-menu-1 .ast-header-navigation-arrow {
  display: none !important;
}

/* Spacing between top-level menu items */
#ast-hf-menu-1 > .menu-item {
	margin-right: 1rem;
}

.cwtIconText {
    background-repeat: no-repeat;
    text-decoration: none;
    background-size: 16px 16px;
    background-position: left center;
    padding-left: 25px !important;
}



