/*
Theme Name: Juristic Child
Theme URI: http://themeforest.net/user/themexshaper/portfolio/
Author: themexshaper
Author URI: http://themeforest.net/user/themexshaper
Description: Juristic - Lawyers and Law Firm WordPress Theme
Template:	juristic
Version: 1.0
Text Domain: juristic-child
*/

.site-logo .custom-logo-link {
    display: inline-block;
    margin-top: 15px;
    max-width: 80px;
}

.header-style-1 .navbar-brand img,
.header-style-2 .navbar-brand img,
.header-style-3 .navbar-brand img {
    max-width: 260px;
}

@media screen and (max-width: 992px) {
    .site-logo .custom-logo-link {
        max-width: 60px;
        margin: 8px;
    }

    .header-style-1 .navbar-brand img,
    .header-style-2 .navbar-brand img,
    .header-style-3 .navbar-brand img {
        max-width: 200px;
    }
}



.page-wrapper footer p,
body footer p {
    color: #ffffff;
}

.preloader {
    background-color: #252b30;
}

.preloader .sk-chase-dot:before {
    background-color: #aa882f;
}

@media screen and (min-width: 1450px) {

    .contact-section,
    .contact-section-s2,
    .contact-section-s3 {
        margin: -219px 0 0;
    }
}

@media screen and (min-width: 1450px) {
    .contact-section {
        margin: -111px 0 0 !important;
    }

}

.contact-home .form-control {
    color: #ffffff;
}


/*--------------------------------------------------------------
	service-section
--------------------------------------------------------------*/
.service-section .right-col.full-width {
    max-width: 100%;
}
.service-section .service-grids .fi {
	top: auto;
}
.service-section .full-width .service-grids .grid {
    width: 80%;
}

.service-section .service-grids {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    padding: 0 35px;
}

.service-section .service-grids .grid {
    position: relative;
    padding-left: 75px;
    /* Remove float and width since grid handles the layout */
}

@media screen and (min-width: 1200px) {
    .service-section {
        margin: 0;
    }
}

@media screen and (max-width: 1024px) {
    .service-section .service-grids {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-section .full-width .service-grids .grid {
        width: 90%;
    }
}

@media screen and (max-width: 768px) {
    .service-section .service-grids {
        grid-template-columns: 1fr;
    }

    .service-section .full-width .service-grids .grid {
        width: 100%;
        padding-left: 15px;
        padding-top: 50px;        
    }
    .service-section .service-grids .fi {
        top: 0;
        left: 20px;
    }
}

.site-footer .widget-title {
    margin-bottom: 10px;
}

.site-footer .upper-footer {
    padding: 60px 0 40px 0;
}

.page-wrapper .upper-footer p {
    margin: 1.9em 0 1.5em;
}

.contact-section,
.contact-section-s2,
.contact-section-s3 {
    padding: 120px 0 35px;
}

/* Team */
#team-popup-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999999;
}

.team-popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000000;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.team-popup-content.active {
    opacity: 1;
    visibility: visible;
}

.team-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: #f1f1f1;
    border-radius: 50%;
}

.team-popup-close:hover {
    background: #e1e1e1;
}

.team-member-content {
    margin-top: 20px;
}

.team-popup-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-right: 40px;
}

.team-popup-image {
    width: 200px;
    margin-right: 30px;
    flex-shrink: 0;
}

.team-popup-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.team-popup-title {
    flex-grow: 1;
}

.team-popup-title h2 {
    margin: 0 0 10px;
    color: #333;
}

.team-popup-title p {
    margin: 0;
    color: #666;
}

.team-member-content {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Make grid clickable and show cursor pointer */
.team-section .grid {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.team-section .grid:hover {
    transform: translateY(-5px);
}

/* Prevent social links from triggering popup */
.team-section .social {
    position: relative;
    z-index: 1;
}

.team-section .social a {
    position: relative;
    z-index: 2;
}

/* EAC plugin */
.eael-simple-menu-container .eael-simple-menu.eael-simple-menu-vertical li {
    border: 1px solid #eaeaea;
}

/* Helpers */
.white p {
    color: #ffffff !important;
}

.text-justify,
.text-justify span {
    text-align: justify !important;
}

@media screen and (max-width: 992px) {

    .header-style-1 #navbar>ul.small-nav>li a,
    .header-style-2 #navbar>ul.small-nav>li a,
    .header-style-3 #navbar>ul.small-nav>li a {
        color: #aa882f;
    }

    .header-style-1 #navbar>ul.small-nav>li>a,
    .header-style-2 #navbar>ul.small-nav>li>a,
    .header-style-3 #navbar>ul.small-nav>li>a {
        text-transform: uppercase;
    }
}