:root {
 --bs-pale-aqua: #f1f1f1;
    --bs-soft-aqua: #f1f1f1;

    --bs-primary: #191413;
    --bs-link-color-rgb: var(--bs-aqua-rgb);
    --bs-link-hover-color-rgb: var(--bs-aqua-rgb);
    --bs-primary-rgb: var(--bs-aqua-rgb);
    --bs-soft-primary: var(--bs-soft-aqua);
    --bs-pale-primary: var(--bs-pale-aqua);
    --bs-bullet-soft-primary: var(--bs-bullet-soft-aqua);
    --bs-icon-fill-primary: var(--bs-icon-fill-aqua);
    --bs-icon-solid-fill-primary: var(--bs-icon-solid-fill-aqua);
    --bs-border-soft-primary: var(--bs-border-soft-aqua);
}

.wrapper.angled.upper-end:before{
    top: 0;
}

.logo-footer{
    max-height: 80px;
}

.bg-gray {
    background-color: #e4f1f6 !important;
}


/* Global Legal Expertise Card Overlay */
.global-expertise-card {
    position: relative;
}

.global-expertise-card figure {
    position: relative;
    margin: 0;
    border-radius: 25px !important;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.global-expertise-card figure img {
    width: 100%;
    height: auto;
    display: block;
}

.global-expertise-card figure::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:linear-gradient(298deg, rgb(0 0 0 / 35%) 0%, rgb(0 0 0 / 60%) 100%);
    z-index: 1;
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    padding: 30px;
    min-width: 90%;
}

.overlay-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.overlay-content p {
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
    color: #ffffff;
}

/* Hover effect */
.global-expertise-card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.global-expertise-card:hover figure {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .overlay-content {
        padding: 20px;
    }

    .overlay-content h3 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .overlay-content p {
        font-size: 16px;
    }
}

/* Countries Grid Section */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
}

.country-item {
    display: block;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
}

.country-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.country-flag {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); */
    transition: all 0.3s ease;
    display: inline-block;
}

.country-flag img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.country-item:hover .country-flag {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
}

.country-name {
    margin-top: 6px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .countries-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .country-item {
        width: 100px;
        height: 100px;
        min-width: 100px;
        min-height: 100px;
        padding: 15px;
    }

    .country-flag {
        width: 45px;
        height: 45px;
        display: inline-block;
    }

    .country-name {
        margin-top: 6px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .countries-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        margin-top: 30px;
    }

    .country-item {
        width: 85px;
        height: 85px;
        min-width: 85px;
        min-height: 85px;
        padding: 12px;
    }

    .country-flag {
        width: 40px;
        height: 40px;
        display: inline-block;
    }

    .country-name {
        margin-top: 6px;
        font-size: 11px;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .countries-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .country-item {
        width: 75px;
        height: 75px;
        min-width: 75px;
        min-height: 75px;
        padding: 10px;
    }

    .country-flag {
        width: 35px;
        height: 35px;
        display: inline-block;
    }

    .country-name {
        margin-top: 6px;
        font-size: 10px;
        line-height: 1.1;
    }
}
