/* 
Theme Name: Good Agency Child
Theme URI: https://github.com/MaxMMD/Good-child-theme
Description: Good Agency Child is a child theme of Hello Elementor, crafted by Good Agency.
Author: Good Agency
Author URI: https://goodagency.nyc/
Template: hello-elementor
Version: 1.0.1
Text Domain: good-agency-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags:
*/

/*
    Insert your tailored CSS rules below
*/

/* Styles for buttons, and custom elements */

.popup {
  z-index: 9;
  overflow-y: scroll; 
  -webkit-overflow-scrolling: touch;
}

.bg-donation-type {
    background-color: #95A6DC66;
    padding: 5px 12px 5px 12px;
    border-radius: 45px;
    font-size:14px;
    color: #2C2C54;
}

.c-pill {
  align-items: center;
	font-family: "Raleway", Sans-serif;
	font-weight: bold;
	font-size: 11px;
  display: inline-block;
  height: 100%;
  white-space: nowrap;
  width: auto;
  position: relative;
  border-radius: 100px;
  line-height: 1;
  overflow: hidden;
  padding: 0px 12px 0px 20px;
  text-overflow: ellipsis;
	line-height: 1.5rem;
	color: #4054B2;
	text-decoration: none !important;
    word-break: break-word;
    margin-bottom: -5px;
    margin-left: 5px;
}

.c-pill:before {
    border-radius: 50%;
    content: '';
    height: 10px;
    left: 6px;
    margin-top: -5px;
    position: absolute;
    top: 50%;
    width: 10px;
    text-decoration: none !important;
}

.c-pill--danger {
    background: #95A6DC42; text-decoration: none !important;
}
    
.c-pill--danger:before {
    background: #4054B2; text-decoration: none !important;
}

.c-pill-text {
  align-items: center;
	font-family: inherit;
	font-size: inherit;
  display: inline-block;
  height: 100%;
  white-space: nowrap;
  width: auto;
  position: relative;
  border-radius: 100px;
  line-height: 1;
  overflow: hidden;
  padding: 0px 12px 0px 20px;
  text-overflow: ellipsis;
	line-height: 1.25rem;
	color: #595959;
	text-decoration: none !important;
    word-break: break-word;
}    

.donate-btn {
    color: #ff8a65 !important;
    align-items: center;
    background-color: #FFE5D0; 
    border-radius: 50px !important;
    display: inline-flex;
    font-family: "Poppins", sans-serif !important;
    font-size: 1rem; /* Use relative units for font size */
    font-weight: 700;
    justify-content: center;
    overflow: hidden;
    padding: 0.5em 1.5em; /* Adjust padding for better scaling */
    position: relative;
    text-transform: uppercase;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    text-align: center; /* Ensures proper alignment on smaller screens */
}

.donate-btn:hover {
    background-color: #fb7655;
    color: #FFFFFF !important;
}

.heart {
    position: relative;
    font-size: 1.2em; /* Slightly larger for visibility */
    margin-right: 8px; /* Adjust margin for smaller screens */
}

@keyframes beat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.25); }
}

.heart-click {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.donate-btn:hover .heart {
    animation: beat 0.6s ease infinite;
}

.donate-btn:hover .heart-click {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
    animation: shockwave 0.6s ease-out forwards;
}

@keyframes shockwave {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .donate-btn {
        font-size: 0.9rem; /* Smaller font size for tablets */
        padding: 0.4em 1.2em; /* Reduce padding for smaller screens */
    }
    .heart {
        font-size: 1em; /* Adjust icon size */
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    .donate-btn {
        font-size: 0.8rem; /* Further reduce font size for mobile */
        padding: 0.3em 1em; /* Compact padding for small devices */
        width: 100%; /* Make button span full width if necessary */
    }
    .heart {
        margin-right: 4px; /* Adjust for smaller spacing */
    }
}


.custom-child-menu-title {
    margin-bottom: 15px;
}

.custom-child-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-child-menu li {
    margin-bottom: 10px;
}

.custom-child-menu li a {
    text-decoration: none;
    color: inherit;
    font-weight: inherit;
}

.custom-child-menu-item.current-page-item a {
    font-weight: bold;
    color: inherit;
}

#dynamic-menu-container:hover .custom-child-menu-title a {
    text-decoration: underline;
}

#hover-icon {
    display: inline-block;
    transform-origin: center !important;
    opacity: 0;
    transform: rotate(45deg);
    transition: transform s ease-in-out 2s;
}

#dynamic-menu-container:hover #hover-icon {
    opacity: 1;
}

.highlighted-text {
    position: relative;
    display: inline-block;
    padding: 0 5px;
    z-index: 1;
}

.highlighted-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 92%;
    height: 85%;
    background-color: #ECECF4;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    animation: swipeIn 1s forwards ease-in-out;
}

@keyframes swipeIn {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

.highlight-btn {
    color: #ff8a65 !important;
    align-items: center;
    background-color: #FFE5D0; 
    border-radius: 50px !important;
    display: inline-flex;
    font-family: "Poppins", sans-serif !important;
    font-size: 18px;
    font-weight: 700;
    justify-content: center;
    overflow: hidden;
    padding: .5em 1.8em;
    position: relative;
    text-transform: uppercase; 
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out; 
}

.highlight-btn.scroll-active,
.highlight-btn:hover {
    background-color: #fb7655;
    color: #FFFFFF !important;
}

.pulse-icon {
    position: relative;
    font-size: 1em;
    margin-right: 12px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.25); }
}

.pulse-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.highlight-btn.scroll-active .pulse-icon,
.highlight-btn:hover .pulse-icon {
    animation: pulse 0.6s ease infinite;
}

.highlight-btn.scroll-active .pulse-effect,
.highlight-btn:hover .pulse-effect {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
    animation: pulsewave 0.6s ease-out forwards;
}

@keyframes pulsewave {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.red-container {
    z-index: 20;
}

/* Focus on video, dim other containers on Homepage */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35); /* Dark overlay */
    z-index: 10; /* Make sure this is lower than the red container's z-index */
    display: none; /* Start hidden */
}

.hover-container {
  opacity: 1;
  transition: opacity 0.8s ease !important; /* Smooth transition */
}

#container1:hover ~ #container2,
#container1:hover ~ #container3 {
  opacity: 0.2; /* Adjust transparency level as needed */
}

.image-left,
.image-right {
    position: absolute;
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Center vertically */
    transition: transform 2s ease-out; /* Smooth transition */
    will-change: transform;
}


.image {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.container-card {
    position: relative;
    overflow: hidden; /* Prevents scaling overflow */
}

.container-card:hover .image {
    transform: scale(1.04);
}

.elementor-widget-text-editor a {
  text-decoration: none !important;
  color: #2C2C54 !important;
  font-weight: 600 !important;
  margin: 0 2px !important;
  position: relative !important;
}

.elementor-widget-text-editor a:before {
  position: absolute !important;
  margin: 0 auto !important;
  top: 100% !important;
  left: 0 !important;
  width: 100% !important;
  height: 2px !important;
  background-color: #2C2C54 !important;
  content: '' !important;
  opacity: .2 !important;
  -webkit-transform: scaleX(.9) !important;
  transition-property: opacity, -webkit-transform !important;
  transition-duration: .3s !important;
}

/* Optional: hover effect for the link */
.elementor-widget-text-editor a:hover:before {
  opacity: 1 !important;
  -webkit-transform: scaleX(1) !important;
}
