.contact-section {
    /* background-color: var(--forth-bg); */
    /* background: linear-gradient(to right, #323333, #243042); */
    background-color: #121213;
    width: 100%;
    padding: 8vh 0 2vh 0;
}

.contact-section h3 {
    font-weight: 600;
    color: var(--primary-bg);
    margin-left: 8vw;
}

.contact-container {
    color: var(--primary-bg);
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    margin: 4vh 8vw;
    gap: 15px;
}

.line {
    width: 1px;
    background-color: #8facadad;
}

.contact-item {
    width: fit-content;
    max-width: 35vw;
    color: #d3d3d3;
}

.contact-item h5 {
    width: fit-content;
    margin-top: 15px;
    font-weight: 500;
    color: white;
}

.contact-item label {
    margin-top: 15px;
}
.contact-item img{
    width: 1rem;
    margin-right: 5px;
}

.contact-item span {
    font-weight: 600;
}

.map-button {
    /* width: fit-content;
    display: block;
    text-decoration: underline;
    font-size: 0.8rem;
    font-style: italic;
    color: var(--hyperlink);
    transition: 0.2s; */
    display: block;
    width: fit-content;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #6dbd9e;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-style: normal;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, opacity 0.5s ease-out, transform 0.5s ease-out;
}

.map-button:hover {
    color: white;
    background-color: #457a66;
}

.social-link{
    display:block;
    width: fit-content;
    color: white;
    font-size: 1rem;
    text-decoration: none;
    margin-top: 10px;
}

.social-link:hover{
    transform: translateX(5px);
    color: white;
    transition: 0.2s ease-in;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .contact-section h3 {
        margin-left: 6vw;
        font-size: 1.75rem;
    }
    .contact-container {
        margin: 4vh 6vw;
        gap: 10px;
    }
    .contact-item {
        max-width: 40vw;
    }
}

@media (max-width: 992px) {
    .contact-section {
        padding: 6vh 0;
    }
    .contact-section h3 {
        margin-left: 4vw;
        font-size: 1.5rem;
    }
    .contact-container {
        margin: 4vh 4vw;
        gap: 8px;
    }
    .contact-item {
        max-width: 45vw;
    }
    .line {
        display: none; /* Hide the line separator on smaller screens */
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 5vh 0;
    }
    .contact-section h3 {
        margin-left: 4vw;
        font-size: 1.25rem;
    }
    .contact-container {
        flex-direction: column;
        margin: 4vh 4vw;
        gap: 20px;
    }
    .contact-item {
        max-width: 100%; /* Make the contact items take full width */
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 4vh 0;
    }
    .contact-section h3 {
        margin-left: 3vw;
        font-size: 1.2rem;
    }
    .contact-container {
        margin: 4vh 3vw;
    }
    .contact-item h5,
    .contact-item label,
    .contact-item span {
        font-size: 0.9rem; /* Reduce font size for smaller screens */
    }
    .map-button {
        font-size: 0.75rem; /* Adjust font size */
    }
}

@media (max-width: 400px) {
    .contact-section h3 {
        margin-left: 2vw;
        font-size: 1rem;
    }
    .contact-container {
        margin: 3vh 2vw;
    }
    .contact-item h5,
    .contact-item label,
    .contact-item span {
        font-size: 0.85rem; /* Further reduce font size */
    }
    .map-button {
        font-size: 0.7rem;
    }
}
