/*---------------------------------------------------------------------------------

 Theme Name:   Divi child
 Theme URI:    https://enalia.tre-host.com
 Description:  Divi Child
 Author:       G Michail
 Author URI:   https://tre-host.com
 Template:     Divi
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

------------------------------ CUSTOM CSS ------------------------------*/
/* Show hamburger menu instaed of heal links */
/* Force Divi mobile menu at 1024px */
/* Switch Divi menu to hamburger at 1024px */
@media (max-width: 1380px) {

    /* Hide desktop menu */
    #top-menu-nav {
        display: none !important;
    }

    /* Show mobile hamburger menu */
    #et_mobile_nav_menu {
        display: block !important;
    }
    /* Make Divi hamburger icon white */
    #main-header:not(.et-fixed-header) 
    #et_mobile_nav_menu .mobile_menu_bar:before {
        color: #ffffff; /* color before scroll */
    }
    /* Mobile menu background BEFORE scroll (header not fixed) */
    #et_mobile_nav_menu #mobile_menu {
        background-color: #335199 !important;
    }
}


/* Make Default Header Overlay Content */
#page-container {
    padding-top: 0 !important;
}

/* Change Logo on Fixed Header */
.et-fixed-header #logo {
    /*content: url('https://enalia.tre-host.com/wp-content/uploads/2025/12/EP-MAIN-LOGO.png');*/
    content: url('/wp-content/uploads/2025/12/LOGO_ICO_512_BLACK.png');
    max-height: 56%;
}

/* add color to the menus bg for post*/
.single-post #main-header, .page-id-4421 #main-header{
    background-color: #004971;
}


/* Add separator with better spacing control */
@media (min-width: 981px) {
    #top-menu-nav #top-menu > li:not(:last-child) {
        position: relative;
        padding-right: 15px;
        margin-right: 5px;
    }
    
    #top-menu-nav #top-menu > li:not(:last-child):after {
        content: "|";
        position: absolute;
        right: 0;
        top: 15%;
        transform: translateY(-50%);
		color: white;
    }
	.et-fixed-header #top-menu-nav #top-menu > li:not(:last-child):after {
		color: #103b63;
		top: 20%;
	}
    
    /* Remove from dropdowns */
    #top-menu-nav #top-menu > li .sub-menu li:after {
        content: none !important;
    }
}

/* Dropbox radius */
#main-header .nav li ul {
    border-radius: 10px;
}


/*
 * 1. FONT DECLARATION: CERA PRO BOLD
 * Files available: cera-gr-bold.otf
 */
@font-face {
    font-family: 'Cera Pro Gr'; /* Use a distinct name for easy CSS targeting */
    src: url('fonts/cera-gr-bold.otf') format('opentype'); /* ONLY OTF */
    font-weight: 700; /* Standard weight for Bold */
    font-style: normal;
    font-display: swap; 
}

 /* 2. FONT DECLARATION: CERA PRO MEDIUM
 * Files available: cera-gr-medium.otf */
 
@font-face {
    font-family: 'Cera Pro Gr';
    src: url('fonts/cera-gr-medium.otf') format('opentype'); /* ONLY OTF */
    font-weight: 500; /* Standard weight for Medium */
    font-style: normal;
    font-display: swap; 
}


/* 3. FONT DECLARATION: CERA PRO REGULAR
 * Files available: CeraPro-Regular.ttf */

@font-face {
    font-family: 'Cera Pro Gr';
    src: url('fonts/CeraPro-Regular.ttf') format('truetype'); /* ONLY TTF */
    font-weight: 400; /* Standard weight for Regular */
    font-style: normal;
    font-display: swap;
}

/* Apply the 'Cera Pro Gr' font to all main heading elements (H1-H6) */
h1, h2, h3, h4, h5, h6 {
    /* The browser will automatically choose the Bold (700) or Medium (500) weight 
       based on the Divi module's setting. */
    font-family: 'Cera Pro Gr', sans-serif !important; 
}

/* Apply the 'Cera Pro Gr' font to all body/paragraph text */
body, p, li, a, .et_pb_module {
    /* This will default to the Regular (400) weight */
    font-family: 'Cera Pro Gr', sans-serif !important;
}

/* Example: Force a specific module to use the Medium weight */
/* Replace '.et_pb_blurb_content' with the CSS class of your specific module */
.et_pb_blurb_content {
    font-weight: 500 !important;
}

/*Home, fighting section - make img initially gray*/
.grayscale img, #team-section img {
	filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.grayscale img:hover, #team-section img:hover {
    filter: grayscale(0%);
}

/*Home page resources*/
/* Shared block styling for custom code */

.flex-container-row, .flex-container-row-inner {
  display: flex;
  justify-content: space-between; /* Creates space between the blocks */
  min-height: 150px; /* Aligns them vertically */
  gap: 20px; /* Optional: Adds consistent spacing */
  /*width: 80%;  Ensure container takes full width */
  align-items: stretch;
}

#home-resources .flex-container-column {
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
  align-items: start; 
}

#home-resources .block {
  text-align: center;
  background: #004971;
  border: 2px solid #004971;
  border-radius: 10px;
  padding: 1rem;
  color: white;
  text-transform: uppercase;
  width: 49%;
}

.transform-up {
    text-transform: uppercase;
}
/* Smooth transitions for everything */
.block img,
.block,
.d_block img,
.d_block span.transform-up {
  transition: all 0.3s ease;
}

/* Hover effects */
.block:hover img,
.block:hover,
.d_block:hover img,
.d_block:hover span.transform-up {
  transform: scale(1.05);
  filter: brightness(1.2) contrast(1.1);
}

/* Hover effects */
.block:hover img,
.block:hover,
.d_block:hover img,
.d_block:hover span.transform-up {
  letter-spacing: 0.3em;
  color:rgb(218, 218, 218);
}
.block a {
    color:unset;
}
/* SVG WRAPPER */
#svg-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* SVG ITSELF */
#svg-wrapper svg {
  width: 67%;
  height: auto;
  display: block;
}

@media (max-width: 768px) { 
    #svg-wrapper svg { width: 100%; } 
    .flex-container-row {
        flex-direction: column;
    }
    h1{
        font-size:32px!important;
    }
    .entry-title{
        font-size:20px!important;
    }
}


/*  ==========   ABOUT US page custom code ==================*/
.about-us-video-module video{
    height: calc(100vh - 120px)!important
}

/*donate buton styling*/
.donate-btn {
    border-color: #004971;
    color: #004971 !important;
    text-transform: uppercase !important;
    font-size: 20px;
    font-weight: 500;
    padding: .3em 1em;
    line-height: 1.7em !important;
    background-color: transparent;
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
    border: 2px solid;
    border-radius: 3px;
    cursor: pointer;
}
.donate-btn:hover {
    background-color: rgba(0, 0, 0, .05);
    border-radius: 0;
    border:none;
    letter-spacing: 3px;
    transition: all 0.5s ease;
}

.donate-btn:after {
    text-shadow: none;
}

.asp_all_buttons_container {
    text-align: center;
}

.asp_product_buy_button {
    margin-top:-1em!important;
}
/*  ==========   OUR TEAM page custom code ==================*/
.et_pb_team_member_description h6 {
    line-height: 1em!important;
}

/*Donate button floating*/
#donate-btn {
  position: fixed;
  bottom: 85px;
  right: 25px;
  background: #f3ffb7;
  color: #004971;
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s ease;
  z-index: 9999;
  font-size: .8em;
}

#donate-btn.show {
  opacity: 1;
  visibility: visible;
}
