/*
Theme Name: el
Theme URI: https://el.local
Author: Eli Lwanga
Description: Mayuge Hope Ministries theme developed by Eli Lwanga. Free to use, contact e.lwanga@tuta.io for modifications and improvements 
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: el
*/

/*===========================================
  Font Utilities
===========================================*/
.font-cerebri {
  font-family: var(--font-cerebri);
}

.font-futura {
  font-family: var(--font-futura);
}

/*===========================================
  Background Utilities
===========================================*/
.bg-soft-grey {
  background-color: var(--wp--preset--color--soft-grey);
}

.bg-background {
  background-color: var(--wp--preset--color--background);
}

.bg-transparent {
  background-color: var(--wp--preset--color--transparent);
}

/*===========================================
  Text Utilities
===========================================*/
.text-primary {
  color: var(--wp--preset--color--primary);
}

.text-muted {
  color: var(--wp--preset--color--muted);
}

.text-transparent {
  color: var(--wp--preset--color--transparent);
}

/*===========================================
  Global Link Styles
===========================================*/
a {
  text-decoration: none;
  color: var(--wp--preset--color--secondary);
  transition: color 0.2s ease-in-out;
}

a:hover,
a:focus {
  color: var(--wp--preset--color--primary);
}



/*===========================================
  Button Styles
===========================================*/

/* Outline button hover */
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--secondary) !important;
  color: var(--wp--preset--color--white) !important;
  border-color: var(--wp--preset--color--secondary) !important;
}

/*exclude button hoover from other links*/
.wp-block-button__link,
.wp-element-button,
.button,
[role="button"],
.wp-block-file__button {
  color: var(--wp--preset--color--white);
  text-decoration: none;
  transition: opacity 0.2s ease-in-out;
}

.wp-block-button__link:hover,
.wp-element-button:hover,
.button:hover,
[role="button"]:hover,
.wp-block-file__button:hover {
	color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--button-hoover);
 
}

/* Outline button hover */
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--primary) !important;
  color: var(--wp--preset--color--white) !important;
  border-color: var(--wp--preset--color--primary) !important;
}


/*===========================================
  Navigation Styles
===========================================*/
.wp-block-navigation a {
  color: var(--wp--preset--color--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.wp-block-navigation a:hover,
.wp-block-navigation a:focus {
  color: var(--wp--preset--color--menu-highlight)!important;
  border-bottom: 2px solid white;  
  padding-bottom: 2px;
}

.wp-block-navigation .current-menu-parent > a,
.wp-block-navigation .current-menu-ancestor > a,
.wp-block-navigation .current_page_parent > a,
.wp-block-navigation .current_page_ancestor > a,
.wp-block-navigation .current-menu-item > a,
.wp-block-navigation .current_page_item > a {
  color: var(--wp--preset--color--menu-highlight) !important;
  border-bottom: 2px solid white !important; 
  padding-bottom: 2px !important;  
}

/* Mobile navigation container */
.wp-block-navigation__responsive-container {
  background-color: var(--wp--preset--color--link);
  color: var(--wp--preset--color--white);
}

.wp-block-navigation__responsive-container .wp-block-navigation a {
  color: var(--wp--preset--color--white);
  padding-right: 15px;
  margin-right: 15px;

}

.wp-block-navigation__responsive-container .wp-block-navigation a:hover {
  color: var(--wp--preset--color--menu-highlight);
  border-bottom: 2px solid white;
  padding-bottom: 2px;
}

.wp-block-navigation__responsive-container .current-menu-ancestor > a,
.wp-block-navigation__responsive-container .current_page_parent > a,
.wp-block-navigation__responsive-container .current_page_ancestor > a,
.wp-block-navigation__responsive-container .current-menu-item > a,
.wp-block-navigation__responsive-container .current_page_item > a {
  color: var(--wp--preset--color--menu-highlight)!important;
  font-weight: 500;
  border-bottom: 2px solid white; 
  padding-bottom: 2px;  
	 display: inline-block;        
  text-align: center !important;            
  margin: 0 auto; 
}

.wp-block-navigation__responsive-container-close {
  color: var(--wp--preset--color--white);
  background-color: transparent;
  border: none;
  padding-right: 3.5rem;
  padding-top: 1rem;
  font-size: 1.25rem;
}

/*===========================================
  Navigation Menu: Submenu Icon Alignment
===========================================*/

/* Submenu icon closer to menu text */
.wp-block-navigation .wp-block-navigation-item.has-child .wp-block-navigation__submenu-icon {
  margin-left: 0rem;   /* reduce space */
  vertical-align: middle; /* align with text */
  position: relative;     /* ensure no absolute offset issues */
  top: 0;                 /* reset vertical */
}

/*===========================================
  Sticky Header
===========================================*/
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 9999;
 /* background-color: var(--wp--preset--color--transparent);*/
  padding: 1rem 0;
  transition: all 0.3s ease-in-out;
}

.sticky-header .header-inner {
  /*max-width: 1200px;    disabled mini header*/
  margin: 0 auto;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease-in-out;
}

.sticky-header.scrolled .header-inner {
  border-radius: 0;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/*===========================================
  Responsive Navigation Breakpoints
===========================================*/
@media screen and (max-width: 1024px) {
  .nav-menu {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .mobile-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 9999;
  }
}

@media screen and (min-width: 1025px) {
  .nav-menu {
    display: flex;
  }

  .mobile-nav,
  .mobile-nav-toggle {
    display: none;
  }
}

/*===========================================
  Container Utility
===========================================*/
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/*===========================================
  Full Width Override
===========================================*/
.full-width-override {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}


/*===========================================
  Font Face Declarations
===========================================*/
@font-face {
  font-family: 'Cerebri Sans Pro';
  src: url('./assets/fonts/Cerebri-Sans-Pro.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cerebri Sans Pro';
  src: url('./assets/fonts/Cerebri-Sans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura Book';
  src: url('./assets/fonts/Futura-Book.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/*===========================================
  Font Fallbacks
===========================================*/
:root {
  --wp--preset--color--soft-grey: #f4f4f4;
  --wp--preset--color--transparent: transparent;

  --font-cerebri: "Cerebri Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --font-futura: "Futura Book", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

/*===========================================
  Misc Utilities
===========================================*/
.vertical-separator {
  width: 1px;
  height: 1rem;
  display: inline-block;
  margin: 0;
  background-color: var(--wp--preset--color--primary);
}

/*===========================================
  Post Styling
===========================================*/
.wp-block-post-content,
.wp-block-post-title,
.wp-block {
  color: var(--wp--preset--color--primary);
  font-family: var(--wp--preset--font-family--futura-book);
}

.wp-block-post-title {
  font-size: 1.6rem;
}

.wp-block a {
  text-decoration: none;
}

.wp-block-post-author,
.wp-block-post-author a,
.wp-block-post-date,
.wp-block-post-date a,
.wp-block-post-terms a,
.wp-block-post-taxonomy a,
.wp-block-post-author a * {
  color: var(--wp--preset--color--muted);
  text-decoration: none;
  text-transform: uppercase;
}

.wp-block-post-terms a:hover {
  color: var(--wp--preset--color--primary);
  text-decoration: underline;
}

/*===========================================
  Footer Styles
===========================================*/
footer a:hover,
.site-footer a:hover {
  color: var(--wp--preset--color--nav-link);
}
