/* 
Theme Name:		 goodman-estate-law
Theme URI:		 http://childtheme-generator.com/
Description:	 goodman-estate-law is a child theme of GeneratePress, created by ChildTheme-Generator.com
Author:			 Horizon Marketing
Author URI:		 http://childtheme-generator.com/
Template:		 generatepress
Version:		 1.0.0
Text Domain:	 goodman-estate-law
*/
/*====================================
   MAIN MENU ITEM SPACING REDUCE
====================================*/

/* Remove horizontal padding between menu items */
.main-navigation .main-nav ul li a {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* Remove any margin that GP adds */
.main-navigation .main-nav ul li {
    margin: 0 !important;
}

/* Sub-menu ke liye thoda clean padding */
.main-navigation .main-nav ul ul li a {
    padding: 8px 12px !important;
}

.main-navigation .dropdown-menu-toggle {
    padding-right: 0px !important;
    padding-left: 0px !important;
}

/* MAIN MENU UNDERLINE EFFECT */
.main-navigation .main-nav ul li > a {
    position: relative;
    overflow: hidden; /* underline clean rakhne ke liye */
}

/* Before = underline */
.main-navigation .main-nav ul li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0; /* text ke bilkul neeche underline */
    width: 0%;
    height: 2px;              /* underline thickness */
    background-color: #c80209;   /* underline color black */
    transition: width 0.3s ease-in-out;
}

/* Hover = underline expands left → right */
.main-navigation .main-nav ul li > a:hover::after,
.main-navigation .main-nav ul li.current-menu-item > a::after {
    width: 100%;
}

/* Hover hatate hi underline gayab */
.main-navigation .main-nav ul li > a:not(:hover)::after {
    width: 0%;
}

/* Hide on Mobile + Tablet */
@media (max-width: 1024px) {
    .hide-mobile-tablet {
        display: none !important;
    }
}


/* ===== ADVANCED TOP BAR DESIGN ===== */

.avadh-top-bar {
    background: #222222;
    border-bottom: 1px solid #de232e;
    font-size: 16px;
}

.avadh-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.avadh-left,
.avadh-right {
    display: flex;
    align-items: center;
}

.top-item {
    display: flex;
    align-items: center;
    margin-right: 25px;
    color: #f7f8f9;
}

.top-item svg {
    margin-right: 6px;
    color: #de232e;
}

.top-item a {
    text-decoration: none;
    color: #f7f8f9;
}

.social-icons a {
    margin-left: 15px;
    color: #de232e;
    display: inline-flex;
    transition: 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}
/* Increase Social Media Icon Size */
.social-icons svg {
    width: 20px;
    height: 20px;
}


/* Hide on Mobile */
@media (max-width: 768px) {
    .avadh-top-bar {
        display: none;
    }
}

/* Reduce overall header height */
.site-header {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.inside-header {
    padding-top: 5px !important;
    padding-bottom: 0px !important;
}

.main-navigation ul ul { 
	width: 210px !important;
}


.mb-0 {
    margin-bottom: 10px !important;
}


.custom-corner-border {
  position: relative;
  display: inline-block;
  transition: transform 0.5s ease; /* Zoom effect */
  border-radius: 20px; /* Rounded corners for the container */
  overflow: hidden; /* Ensure pseudo-elements stay within rounded corners */
}

/* Top-left lines */
.custom-corner-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 50%;
  border-top: 8px solid #CB272A;
  border-left: 8px solid black;
  box-sizing: border-box;
  transition: width 0.5s ease, height 0.5s ease;
  pointer-events: none;
  z-index: 10;
  
}

/* Bottom-right lines */
.custom-corner-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 50%;
  border-bottom: 8px solid #CB272A;
  border-right: 8px solid black;
  box-sizing: border-box;
  transition: width 0.5s ease, height 0.5s ease;
  pointer-events: none;
  z-index: 10;
  
}

/* Hover: expand lines to full size + zoom effect */
.custom-corner-border:hover {
  transform: scale(1.05); /* Zoom effect */
}

.custom-corner-border:hover::before,
.custom-corner-border:hover::after {
  width: 100%;
  height: 100%;
}


/* IMAGE को white circular background देना */
.uagb-ifb-image-content {
    width: 110px;
    height: 110px;
    background: #ffff;
    border-radius: 50%;
	border: 3px solid #c80209;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    overflow: hidden;
    transition: transform 0.6s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* अंदर की image को flip animation के लिए तैयार करें */
.uagb-ifb-image-content img {
    width: 60px !important;
    height: 60px !important;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

/* HOVER EFFECT — पूरा circle थोड़ा lift हो */
.uagb-info-box:hover .uagb-ifb-image-content,
.wp-block-uagb-info-box:hover .uagb-ifb-image-content {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* HOVER पर IMAGE का 180-degree flip */
.uagb-info-box:hover .uagb-ifb-image-content img,
.wp-block-uagb-info-box:hover .uagb-ifb-image-content img {
    transform: rotateY(180deg);
}

/* ==========================================
   CUSTOM FOOTER WIDGET WIDTH CONTROL
   GeneratePress + Spectra (With !important)
========================================== */

/* Footer Widgets Wrapper */
.footer-widgets-container .inner-padding {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 20px !important; /* Widgets ke beech ka space adjust karein */
}

/* Individual Footer Widgets */
.footer-widgets-container .footer-widget-1,
.footer-widgets-container .footer-widget-2,
.footer-widgets-container .footer-widget-3,
.footer-widgets-container .footer-widget-4 {
    flex-grow: 0 !important;
    flex-basis: unset !important;
    max-width: none !important;
}

/* MANUAL WIDTH CONTROL */
.footer-widgets-container .footer-widget-1 {
    width: 31% !important;   /* 1st Widget */
}

.footer-widgets-container .footer-widget-2 {
    width: 22% !important;   /* 2nd Widget */
}

.footer-widgets-container .footer-widget-3 {
    width: 25% !important;   /* 3rd Widget */
}

.footer-widgets-container .footer-widget-4 {
    width: 24% !important;   /* 4th Widget */
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .footer-widgets-container .inner-padding {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .footer-widgets-container .footer-widget-1,
    .footer-widgets-container .footer-widget-2,
    .footer-widgets-container .footer-widget-3,
	.footer-widgets-container .footer-widget-4 {
        width: 100% !important;
    }
}

/* ======= 2. FOOTER HEADINGS BOTTOM LINE ======= */
#footer-widgets h4 {
    position: relative !important;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
}

#footer-widgets h4::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 20px !important;
    height: 3px !important;
    background: #ffff !important; /* Red line */
    border-radius: 4px !important;
}


/* ================================
   FULL WIDTH ANIMATED GRADIENT LINE
================================ */

.footer-animated-line {
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #cb272a, #f2c729, #cb272a);
    background-size: 400% 400%;
    animation: footerLineFlow 6s ease infinite;
    margin: 0;
    padding: 0;
}

@keyframes footerLineFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ======================================
   Footer Bar Top & Bottom Red Line
====================================== */

/* Footer Wrapper Target */
.site-info {
    position: relative;
    padding: 0px 0 !important;
}

/* TOP RED LINE */
.site-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #cb272a !important;
}

/* BOTTOM RED LINE */
.site-info::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #cb272a !important;
}

.wp-block-uagb-icon-list.uagb-block-bef30193 .wp-block-uagb-icon-list-child .uagb-icon-list__label {
    
    font-weight: 400;
    font-size: 16px;
}

.footer-widgets {
    color: #d72424 !important;
}


.yoast-breadcrumbs, .text-center {
    text-align: center;
}

.aioseo-breadcrumbs {
    display: inline-block;
    width: auto !important;
}

.yoast-breadcrumbs > span, 
.aioseo-breadcrumbs {
    background: #c80209;
    padding: 10px 20px;
    display: inline-block;
    color: #fff !important;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 5px;
    box-shadow: 0px 5px 12px #0000004a;
}

/* 👇 Ye add karein for white links */
.yoast-breadcrumbs a,
.yoast-breadcrumbs a:visited,
.yoast-breadcrumbs a:hover,
.yoast-breadcrumbs a:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}