.map-container {
    width: 100%;
    padding: 20px 0;
    background: #fff;
    text-align: center;
}

/* Heading Above the Map */
.map-heading {
    font-family: 'RobotoCondensed-Black';
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
    font-size: 4rem;
    color: #006694;
    text-align: center;
    margin: -15rem auto 5rem;
}

.india-map-wrapper {
    max-width: 70rem;
    margin: -15rem auto 0;
    display: flex;
    justify-content: center;
}

#india-map {
    width: 75%;
    height: auto;
    /* Prevent internal cropping */
    overflow: visible;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.3));
    /* OR 
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);*/
}

#india-map path {
    fill: #fff;
    stroke: #006694;
    stroke-width: 1;
}

#india-map path:hover {
    fill: #c0c0c0;
    stroke: #666;
}

#india-map:hover .location-marker image {
    z-index: 1; /* Keep markers behind */
}


.location-marker {
    position: relative;
    z-index: 1;
}

.location-marker image {
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
    z-index: 1;
}

.location-marker text {
    font-size: 12px;
    font-weight: bold;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s ease-out;
    pointer-events: none;
}

.location-marker:hover text {
    visibility: visible;
    opacity: 1;
}
/* Info box styling */

.info-box {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.info-box.visible {
    opacity: 1;
    pointer-events: auto;
}

.info-content {
     background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    pointer-events: auto;
}

.info-content h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
}

.info-content p {
    margin: 5px 0;
    color: #666;
    font-size: 12px;
}

/* Hover effects */
.location-marker:hover .info-box {
    visibility: visible;
    opacity: 1;
}

.location-marker:hover image {
    z-index: 1;  /* Keep marker behind */
}

.info-content {
    padding: 0;
    background-color: #e0f7fa;
    border-radius: 5px;
    font-family: Arial, sans-serif;
}
.info-content h3 {
    color: #0077b6;
    margin-top: 0;
}
.info-content a {
    color: #0077b6;
    text-decoration: none;
}

/* WFH/Residential Address Section */
.wfh-address-container,
.overseas-address-container {
    width: 80%;
    margin: 0 auto;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.wfh-title,
.overseas-title {
    font-family: 'RobotoCondensed-Black';
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
    font-size: 4rem;
    color: #006694;
    text-align: center;
    margin: 5rem auto 2rem;
}

/* WFH Card Wrapper for Two Cards */
.wfh-card-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* WFH Individual Card */
.wfh-card {
    display: flex;
    background-color: #e0f7fa;
    border-radius: 5px;
    width: calc(50% - 10px); /* Two cards occupy 80% width together */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* WFH Card Content */
.wfh-card-content {
    padding: 15px;
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wfh-card-content h3 {
    color: #0077b6;
    margin-top: 0;
    margin-bottom: 10px;
    font-family: 'Avenir-Next-Medium';
    font-size: 1.5rem;
}

.wfh-card-content p {
    margin: 5px 0;
    line-height: 1.6;
    font-size: 1rem;
    font-family: 'Avenir-Next-Regular';
    align-items: center;
    gap: 8px;
}

.wfh-card-content a {
    color: #0077b6;
    text-decoration: none;
}

.wfh-card-content .icon {
    width: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

.wfh-card-image {
    flex-shrink: 0;
    width: 150px;
}

.wfh-card-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Overseas Office Card */
.overseas-card {
    display: flex;
    background-color: #fff;
    border-radius: 5px;
    width: 100%; /* Takes full 80% width */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 20px;
}

/* Overseas Card Content */
.overseas-card-content {
    padding: 15px;
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.overseas-card-content h3 {
    color: #0077b6;
    margin-top: 0;
    margin-bottom: auto;
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
    font-size: 2rem;
}

.overseas-card-content p {
     margin: 5px 0;
    line-height: 1.6;
    font-size: 1.2rem;
    font-family: 'Poppins';
    display: flex;
    align-items: center; 
}

.overseas-card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically centers all p tags as a group */
}

.overseas-card-content a {
    color: #0077b6;
    text-decoration: none;
}

.overseas-card-content .icon {
    width: 1.5rem;
    margin-right: 5px;
    vertical-align: middle;
}

/* Overseas Card Image */
.overseas-card-image {
    flex-shrink: 0;
    width: 50%;
    height: 20rem;
}

.overseas-card-image img {
    width: 100%;
    /*height: auto;*/
    object-fit: cover;
}


.dynamic-office {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.office-details {
    display: flex;
    height: 100%;
}

.info-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.info-left h3 {
    color: #006694;
    font-size: 24px;
    margin-bottom: 15px;
    /*font-family: 'Roboto', sans-serif;*/
    text-align: left; /* Changed from center to left */
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
}

.contact-info-map {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'Poppins';
}

.info-left p {
    margin: 10px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.info-left a {
    color: #0077b6;
    text-decoration: none;
}

.icon {
    width: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.info-right {
    flex: 1;
    min-width: 50%; /* Ensure it takes exactly half */
    display: flex;
}

.office-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the space */
    border-radius: 0 5px 5px 0; /* Rounded corners only on right side */
}

@media (min-width: 600px) and (max-width: 1024px) {
    .office-details {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .info-left,
    .info-right {
        width: 50%;
    }
}

/* Responsive for Small Screens */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    .wfh-title,
    .overseas-title {
        font-family: 'RobotoCondensed-Black';
        font-optical-sizing: auto;
        font-weight: 900;
        font-style: normal;
        font-size: 1.5rem;
        color: #006694;
        text-align: center;
        margin: 7rem auto 2rem;
    }
    .wfh-card {
        width: 100%;
    }

    .overseas-card {
        flex-direction: column;
    }

    .overseas-card-image {
        width: 100%;
    }

    .map-heading {
        font-size: 2.5rem;
    }

    .info-right {
        width: 100%;
    }
    .overseas-card-content {
        text-align: left;
        align-items: flex-start;
    }

    .overseas-card-details {
        align-items: flex-start;
    }

    .overseas-card-content p {
        flex-direction: row;
        flex-wrap: wrap;
        font-size: 1rem;
    }
    
    .overseas-card-content p span {
        display: inline-block;
    }

    .overseas-card-content p br {
        display: none;
    }

    .overseas-card-content a {
        display: inline;
        margin-left: 5px;
    }
    
    .overseas-card-content h3{
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    #india-map {
        width: 90%;
    }
    
    .office-details {
        flex-direction: row; /* 👈 This keeps image next to info */
        flex-wrap: wrap; /* allow wrapping if needed */
    }
    
    .info-left,
    .info-right {
      flex: 1 1 50%;
      min-width: 300px;
    }
    
    .office-image {
      height: auto;
    }
}

@media (max-width: 480px) {
    .info-left h3 {
        font-size: 1.2rem;
    }

    .info-left p {
        font-size: 0.8rem;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .icon {
        width: 1rem !important;
    }
}
