/*
Theme Name: nextz
Template: astra
Version: 1.0
Description: Child theme for Astra
*/

/* Your custom CSS below */

/* ==================== Top Header & Menu ==================== */
/* Change submenu background color */
.main-header-menu .sub-menu {
    background-color: #ffffff !important;
}

/* Change submenu text color */
.main-header-menu .sub-menu a {
    color: black !important;
}

/* Change submenu text color on hover */
.main-header-menu .sub-menu a:hover {
    color: #f0f0f0 !important;
    background-color: #555555 !important;
}

.sticky-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
	/* background: rgba(36, 42, 54, 0.7) !important; */
    /* background: #242a36 !important; Match your header background */
	background: #ED1E23 !important;
    box-shadow: 0 2px 30px rgba(0,0,0,0.1) !important;
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Smooth transition for body padding */
body {
    transition: padding-top 0.3s ease-in-out;
}


/* === STICKY HEADER CSS - DISABLED ===

.sticky-active .custom-logo,
.sticky-active .ast-logo img {
    width: 180px !important; 
    height: auto !important;
    transition: all 0.3s ease-in-out !important;
}

.custom-logo,
.ast-logo img {
    transition: all 0.3s ease-in-out !important;
}
=== END STICKY HEADER === */

/* Enlarge logo in sticky mode */
.sticky-active .site-logo img,
.sticky-active .custom-logo,
.sticky-active .ast-logo img {
    transform: scale(1.1) !important; /* Adjust scale factor as needed */
    transition: transform 0.9s ease-in-out !important;
	padding-left: 0px !important; /* Add this line */
	margin-right: 0px !important;
}

/* Smooth transition for normal state */
.site-logo img,
.custom-logo,
.ast-logo img {
    transition: transform 0.3s ease-in-out !important;
}

/* Optional: Add padding to prevent layout shift */
.sticky-active .site-logo,
.sticky-active .ast-logo {
    padding: 5px 0 !important; /* Adjust based on your design */
}

/* ========================
   SMOOTH HEADER TRANSITIONS
   ======================== */


.vertical-tab-name {
white-space: nowrap;
}


/* ==================== Top Header & Menu (end) ==================== */


/* ==================== Footer Logo (begin) ==================== */
.elementor-614 .elementor-element.elementor-element-f17ec22 img {
    width: 280px !important;
}
/* ==================== Footer Logo (end) ==================== */

/* Target iPad 6th Gen Portrait only */
/* @media only screen and (min-width: 768px) and (max-width: 820px) and (orientation: portrait) {
    
    .rev_slider .tp-caption {
        left: 50% !important;
        transform: translateX(-50%) !important;
        text-align: center !important;
    }
}
*/



/* Top Banner (revslider) Only apply to tablets in portrait */
/* @media only screen and (min-width: 768px) and (max-width: 820px) and (orientation: portrait) {
    .tp-caption {
        text-align: center !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}
*/



/* Keep logo and company title in one line, with tagline below title */
.site-branding {
    display: flex !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
}

.site-logo-img {
    margin-right: 15px !important;
    flex-shrink: 0 !important;
}

.ast-site-title-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
}

.site-title {
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.site-description {
    margin-top: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    font-size: 0.9em !important;
}

/* Ensure vertical alignment looks good */
.site-branding {
    align-items: center !important;
}


/* Additional Custom Effects */
/* Target the image inside the container with this class */
.image-zoom-out img {
    transition: transform 0.5s ease-in-out !important;
    transform: scale(1); /* Original size */
}

/* Scaling to 1.1x on hover */
.image-zoom-out:hover img {
    transform: scale(1.1);
}

/* Optional: Prevents the image from spilling outside its column/container */
.image-zoom-out {
    overflow: hidden;
}



@keyframes blinker {
  0% { opacity: 1; }
  49% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}

.text-blinking {
  animation: blinker 1s linear infinite !important;
	display: none !important;
}





@media (max-width: 1124px) {
    .fixed-bg-mobile {
        position: relative;
        z-index: 1;
        background: none !important; /* Remove the Elementor background */
    }

    .fixed-bg-mobile::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Replace the URL below with your actual image link */
        background-image: url('https://www.pedaria.my/wp-content/uploads/2026/02/1111about-table.png');
        background-size: cover;
        background-position: center;
        z-index: -1;
        will-change: transform;
    }
}

/* Enlarge the company logo by 50% */
.enlargelogo img {
    width: 75% !important;
    height: auto !important;
    max-width: none !important; /* Prevents the container from squishing the image */
    display: block;
}

/* Optional: Center the logo if it looks offset after enlarging */
.enlargelogo {
    display: flex;
    justify-content: flex-start; /* Change to 'center' if needed */
    align-items: center;
}

/* Change the Below Footer background color */
.site-below-footer-wrap[data-section="section-below-footer-builder"] {
    background-color: red !important;
}






/* --- Desktop & Global Styling --- */
/* The Container: Holds both icons side-by-side */
.navigator-icon {
    display: flex !important;
    flex-direction: row !important; 
    justify-content: flex-start !important; 
    align-items: center !important;
    gap: 20px !important; 
    margin-top: 15px !important;
    padding: 0 !important;
}

/* The Icons: Sets a consistent size */
.navigator-icon img {
    width: 45px !important; /* Fixed width for better control */
    height: auto !important;
    max-width: none !important;
    object-fit: contain !important;
    margin: 0 !important;
    transition: transform 0.2s ease;
}

/* Hover effect for desktop users */
.navigator-icon img:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* --- Mobile View (Phone/Tablet) --- */
@media (max-width: 767px) {
    .navigator-icon {
        /* This keeps them in a row and centers them for mobile users */
        justify-content: center !important; 
        gap: 15px !important;
        margin-top: 20px !important;
    }

    .navigator-icon img {
        /* Prevents the 'oversized' look on mobile */
        width: 35px !important; 
    }
}


/* Add vertical bar between menu items in Astra footer */
#astra-footer-menu li:not(:last-child)::after {
    content: "|";
    padding: 0 2px; /* Adjust the space around the bar as needed */
    color: #CAD0DB;  /* Change #ffffff to match your text color */
}