.offices-accordion {
    font-family: 'Montserrat';
}
.offices-accordion .office-item .office-header {
    padding-bottom: 20px;
    margin-top: -15px;
}
.offices-accordion .office-header {
    padding: 15px;
    cursor: pointer;
    position: relative;
    text-align: center;
    background-color: white;
    border-top: 1px solid #003365;
    border-left: 1px solid #003365;
    border-right: 1px solid #003365;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    transition: background-color 0.3s ease, border-radius 0.3s ease;
}
.offices-accordion .office-header h3 {
    margin: 0;
    font-size: 40px;
    color: #003365;
    transition: color 0.3s ease;
}


.offices-accordion .office-item.active .office-header h3 {
    color: #4397FF;
}
.offices-accordion .office-toggle {
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s;
    position: absolute; /* Position absolutely */
    right: 15px; /* Align to the right */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Perfect vertical centering */
}
.offices-accordion .office-item.active .office-toggle {
    transform: translateY(-50%) rotate(180deg); /* Maintain vertical centering while rotating */
}
.offices-accordion .office-content {
    
    border-left: 1px solid #003365;
    border-right: 1px solid #003365;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
}
.offices-accordion .office-item.active .office-content {
    max-height: 2000px;
    opacity: 1;
    transition: max-height 0.5s ease-in, opacity 0.4s ease-in, padding 0.3s ease-in;
    display: block;;
}
.office-main-details, .office-contact-details{
    display: flex;
    gap: 20px;
    padding: 1.5rem;
    margin-bottom: 0px;
    padding-bottom: 0px;    
    background-color: white;
}
.office-contact-person{
    padding: 1.5rem;;
}
.office-image {
    flex: 0 0 50%;
    max-height: 170px;
    overflow: hidden;
}
.office-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
.office-description {
    flex: 1;
}
.office-locations-list {
    flex: 0 0 50%;
}
.office-locations-list h4,
.office-locations-list strong {
    color: #0f3263;
    font-weight: 700;
}
.office-locations-list h4{
    font-size: 24px;
}
.office-main-contact {
    flex: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

/* Social Media Buttons */
.office-social-media {
    margin-top: 0px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: #000;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: white;
}

.social-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Platform-specific hover colors */
.social-twitter:hover {
    background-color: #1DA1F2;
}

.social-linkedin:hover {
    background-color: #0077B5;
}

.social-youtube:hover {
    background-color: #FF0000;
}

.social-facebook:hover {
    background-color: #1877F2;
}

.social-instagram:hover {
    background-color: #E4405F;
}

/* Responsive design for social buttons */
@media (max-width: 768px) {
    .office-social-media {
        justify-content: center;
        margin-top: 20px;
    }
    
    .social-button {
        width: 40px;
        height: 40px;
    }
    
    .social-button svg {
        width: 18px;
        height: 18px;
    }
    
    /* Contact person social media responsive */
    .contact-person-social-media {
        justify-content: flex-start;
        margin-top: 12px;
    }
    
    .contact-person-social-media .social-button {
        width: 28px;
        height: 28px;
    }
    
    .contact-person-social-media .social-button svg {
        width: 14px;
        height: 14px;
    }
}
.location-item {
    margin-bottom: 15px;
}
.location-item p {
    margin: 0;
    line-height: 1.6;
}
.section-separator {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.office-contact-person h4 {
    margin-bottom: 15px;
    color: #0f3263;
    font-weight: 700;
    font-size: 24px;
}

.contact-person-card {
    display: flex;
    gap: 30px;
    border-radius: 10px;
    padding: 20px;
}

/* New top section to group image and name side by side */
.contact-person-top-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-person-image {
    margin-bottom: 0;
}

.contact-person-image img {
    border-radius: 1.5rem;
    object-fit: cover;
    max-height: 180px;
}

/* Adjust the header styles for side-by-side layout */
.contact-person-header {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: flex-end;
}

.contact-person-name {
    margin: 0 0 5px 0;
    font-size: 36px;
    color: #0f3263;
}

.contact-person-position {
    margin: 0;
    font-size: 16px;
}

.contact-person-position p {
    margin: 0;
    padding: 0;
}

.contact-person-contact-info {
    display: flex;
    gap: 10px;
    padding-bottom: 15px;
    flex-wrap: wrap;
}

/* Contact Person Social Media Buttons */
.contact-person-social-media {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.contact-person-social-media .social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #000;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.contact-person-social-media .social-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: white;
}

.contact-person-social-media .social-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Contact person social media hover colors (smaller size) */
.contact-person-social-media .social-twitter:hover {
    background-color: #1DA1F2;
}

.contact-person-social-media .social-linkedin:hover {
    background-color: #0077B5;
}

.contact-person-social-media .social-youtube:hover {
    background-color: #FF0000;
}

.contact-person-social-media .social-facebook:hover {
    background-color: #1877F2;
}

.contact-person-social-media .social-instagram:hover {
    background-color: #E4405F;
}

.button-like {
    background-color: #e6e6e6;
    color: #0f3263;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.button-like.email-button {
    background-color: #4398ff;
    color: white;
}

.social-link-button {
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.button-like.link{
    background-color: #4397FF;
    color: white;
}

.social-link-button span {
    font-weight: bold;
}

/* Right column for bio text */
.contact-person-bio {
    flex: 1;
}

.contact-person-bio p {
    margin: 0 0 10px 0;
    line-height: 1.5;
    color: #444;
}

.contact-person-info{
    flex: 1;
}

.location-phone{
    color: #0f3263;
}

.offices-accordion .office-item:last-child .office-header{
    border-bottom: 1px solid #003365;
    border-radius: 20px 20px 20px 20px; /* Ensure the last item has rounded corners at the top */
}

.offices-accordion .office-item:last-child .office-content {
    border-bottom: 1px solid #003365;
    border-radius: 0 0 20px 20px; /* Ensure the last item has rounded corners at the bottom */
}

.offices-accordion .office-item.active .office-header {
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
}

.offices-accordion .office-item .office-header:hover
{
    background-color: #4397FF;
}

.offices-accordion .office-item .office-header:hover h3
{
    color: white;
}

.offices-accordion .office-item.active .office-header {
    background-color: white;
}

.offices-accordion .office-item.active .office-header h3 {
    color: #4397FF;
}


/* hover preview css section, if want to disable remove or comment below css */
.offices-accordion .office-item .office-header:hover + .office-content {
    display: block;
    max-height: 100px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.2s ease-out, opacity 0.2s ease-out;
}

.offices-accordion .office-item:hover .office-content:not(.office-item.active .office-content) {
    display: block;
    max-height: 100px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.2s ease-out, opacity 0.2s ease-out;
}

.offices-accordion .office-item.active:hover .office-content {
    max-height: 2000px !important;
    opacity: 1 !important;
}

.offices-accordion .office-item.active .office-header:hover {
    background-color: white !important;
}

.offices-accordion .office-item.active .office-header:hover h3 {
    color: #4397FF !important;
}

.wrapper-locations {
    display: flex;
    gap: 2rem;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

/* Tablet Landscape - 1024px and below */
@media screen and (max-width: 1024px) {
    .offices-accordion .office-header h3 {
        font-size: 32px;
    }
    
    .office-main-details, 
    .office-contact-details {
        padding: 1.2rem;
    }
    
    .office-contact-person {
        padding: 1.2rem;
    }
    
    .contact-person-name {
        font-size: 30px;
    }
    
    .wrapper-locations {
        gap: 1.5rem;
    }
}

/* Tablet Portrait - 768px and below */
@media screen and (max-width: 768px) {
    .offices-accordion .office-header h3 {
        font-size: 28px;
        padding-right: 45px; /* Add space for toggle button */
    }
    
    .offices-accordion .office-toggle {
        right: 12px;
        width: 18px;
        height: 18px;
    }
    
    /* Stack main office details vertically */
    .office-main-details {
        flex-direction: column;
        gap: 15px;
        padding: 1rem;
    }
    
    .office-image {
        flex: none;
        max-height: 200px;
        align-self: center;
        max-width: 100%;
    }
    
    .office-description {
        flex: none;
    }
    
    /* Stack contact details vertically */
    .office-contact-details {
        flex-direction: column;
        gap: 20px;
        padding: 1rem;
    }
    
    .office-locations-list {
        flex: none;
    }
    
    .office-locations-list h4 {
        font-size: 20px;
    }
    
    /* Stack locations horizontally on tablet */
    .wrapper-locations {
        flex-direction: column;
        gap: 1rem;
    }
    
    .office-main-contact {
        flex: none;
        gap: 8px;
    }
    
    /* Contact person card adjustments */
    .contact-person-card {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    
    .contact-person-top-section {
        justify-content: center;
        text-align: center;
    }
    
    .contact-person-header {
        align-self: center;
        text-align: center;
    }
    
    .contact-person-name {
        font-size: 24px;
    }
    
    .contact-person-contact-info {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .contact-person-social-media {
        justify-content: center;
    }
    
    .contact-person-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-person-bio {
        text-align: center;
    }
}

/* Large Mobile - 480px and below */
@media screen and (max-width: 480px) {
    .offices-accordion .office-header {
        padding: 12px;
    }
    
    .offices-accordion .office-header h3 {
        font-size: 22px;
        padding-right: 40px;
    }
    
    .offices-accordion .office-toggle {
        right: 10px;
        width: 16px;
        height: 16px;
    }
    
    .office-main-details, 
    .office-contact-details {
        padding: 0.8rem;
        gap: 12px;
    }
    
    .office-contact-person {
        padding: 0.8rem;
    }
    
    .office-image {
        max-height: 150px;
    }
    
    .office-locations-list h4 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .wrapper-locations {
        gap: 0.8rem;
    }
    
    .location-item {
        margin-bottom: 10px;
    }
    
    .office-main-contact {
        gap: 6px;
    }
    
    .button-like {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Contact person adjustments for small mobile */
    .contact-person-card {
        padding: 12px;
        gap: 15px;
    }
    
    .contact-person-top-section {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .contact-person-image img {
        max-height: 120px;
        width: 120px;
        object-fit: cover;
    }
    
    .contact-person-name {
        font-size: 20px;
    }
    
    .contact-person-position {
        font-size: 14px;
    }
    
    .contact-person-contact-info {
        gap: 8px;
    }
    
    .office-social-media {
        justify-content: center;
        gap: 8px;
    }
}

/* Small Mobile - 360px and below */
@media screen and (max-width: 360px) {
    .offices-accordion .office-header {
        padding: 10px;
    }
    
    .offices-accordion .office-header h3 {
        font-size: 18px;
        padding-right: 35px;
        line-height: 1.2;
    }
    
    .office-main-details, 
    .office-contact-details {
        padding: 0.6rem;
    }
    
    .office-contact-person {
        padding: 0.6rem;
    }
    
    .office-image {
        max-height: 120px;
    }
    
    .contact-person-image img {
        max-height: 100px;
        width: 100px;
    }
    
    .contact-person-name {
        font-size: 18px;
    }
    
    .contact-person-position {
        font-size: 13px;
    }
    
    .button-like {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .wrapper-locations {
        gap: 0.6rem;
    }
}

/* Extra responsive utilities */
@media screen and (max-width: 600px) {
    /* Ensure text doesn't get too small on any device */
    .office-description p,
    .location-item p,
    .contact-person-bio p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Ensure adequate touch targets for mobile */
    .offices-accordion .office-header {
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improve spacing for readability */
    .section-separator {
        margin: 15px 0;
    }
    
    .office-contact-person h4 {
        font-size: 18px;
        margin-bottom: 12px;
    }
}